Commit Graph

34 Commits

Author SHA1 Message Date
TheAssassin
437631b346 Remove obsolete debug message 2018-06-08 03:23:08 +02:00
TheAssassin
4a31ecb8b9 Allow setting destination directory in deployLibrary() 2018-06-08 03:06:18 +02:00
TheAssassin
96bf015722 Build up to date version of Boost libraries
System versions can still be used (if they're _somewhat_ up to date,
the ones on <= xenial are too old).
2018-06-08 02:04:20 +02:00
TheAssassin
030b21379b Move exception to header
Otherwise, it obviously can't be caught by users of the ElfFile class.
2018-06-04 14:08:24 +02:00
TheAssassin
c6f760c343 Add some checks to ElfFile constructor 2018-06-04 13:59:23 +02:00
TheAssassin
bc43814608 Use references instead of copying values 2018-06-03 12:52:59 +02:00
TheAssassin
54029b53b6 Deploy dependencies for existing files in AppDir 2018-06-03 03:24:29 +02:00
TheAssassin
f2dc908b18 Actually load magic data 2018-06-03 03:17:15 +02:00
TheAssassin
88a62ff2a7 Improve MagicError 2018-06-03 03:14:13 +02:00
TheAssassin
8ec2f00448 Add error string to exception messages 2018-06-03 03:07:23 +02:00
TheAssassin
049661aeca Fix location of function 2018-06-03 02:32:39 +02:00
TheAssassin
e97dd29da5 Rename wrapper class 2018-06-03 02:29:46 +02:00
TheAssassin
76399d15e2 Refactor util lib 2018-06-03 02:14:51 +02:00
TheAssassin
22df875849 Add libmagic wrapper
Also builds separate static library linuxdeploy_util providing old util
header and new magic wrapper.
2018-06-03 02:09:24 +02:00
TheAssassin
b64270c37b Add include dir to public linking interface 2018-06-02 01:19:57 +02:00
TheAssassin
96f77423d6 Remove util.h from public interface
It doesn't belong to the core namespace anyway.
2018-06-02 01:15:07 +02:00
TheAssassin
6b88cd4721 Rename core library for external usage 2018-06-02 01:11:52 +02:00
TheAssassin
749110852c Force static build of the core library 2018-06-02 01:11:17 +02:00
TheAssassin
2bee994f53 Rename icons like <appname>_*.ext to <appname>.ext
This allows users to specify multiple icons like
-i app_res1.png -i app_res2.png -i [...]
linuxdeploy can sort them into the right directory structure, and
their name will be equal to the app name (which is most likely equal
to the Icon entry in the desktop file).
2018-06-01 21:52:43 +02:00
TheAssassin
0cc71b2d84 Link boost statically 2018-06-01 20:33:53 +02:00
TheAssassin
3244f44b9a Don't overwrite existing files unless explicitly requested 2018-06-01 20:28:32 +02:00
TheAssassin
aa345a3dfe Initialize all variables 2018-06-01 16:56:28 +02:00
TheAssassin
a4103bde5b Add note about default verbosity value 2018-06-01 16:01:40 +02:00
TheAssassin
118b4f2ca2 Improve deployment efficiency
This commit introduces a "visited files" list that contains all files
that have already been processed by the deployment operations.
This is similar to the visited node lists many routing algorithms use,
e.g., Dijkstra and its derivatives like A*.
2018-06-01 15:27:08 +02:00
TheAssassin
2760ed2e8a Improve duplicates check efficiency
Use binary search instead of linear search.
2018-06-01 15:15:40 +02:00
TheAssassin
f65ce9a2b1 Improve docs and initialization of containers 2018-06-01 15:12:26 +02:00
TheAssassin
563be1a14c Improve rpath handling 2018-06-01 15:02:05 +02:00
TheAssassin
72e20ec6fc Improve desktop file related messages 2018-06-01 14:57:14 +02:00
TheAssassin
8f59b3ef4a Allow using custom AppRun
There's two ways to do this:

 - either place an AppRun in the AppDir before calling linuxdeploy
 - or use the new --custom-apprun parameter

Also fixes a small naming inconsisteny in the info messages.
2018-06-01 02:55:37 +02:00
TheAssassin
a382a0fd98 Show usage if --appdir is missing 2018-05-31 23:21:20 +02:00
TheAssassin
879176ca7b Don't crash if patchelf binary is not found
TODO: fix this in cpp-subprocess.
2018-05-30 22:33:05 +02:00
TheAssassin
c67239082e Use local patchelf if available 2018-05-30 22:30:44 +02:00
TheAssassin
17b55f02e8 Travis configuration (#1) 2018-05-30 21:27:39 +02:00
TheAssassin
e598536173 Initial commit 2018-05-30 19:21:08 +02:00