Commit Graph

63 Commits

Author SHA1 Message Date
TheAssassin
b491870cab Fix SVG deployment 2018-06-16 03:33:55 +02:00
TheAssassin
68c1768543 Show message on libmagick errors 2018-06-16 03:31:49 +02:00
TheAssassin
760f92b5ce Fix error message 2018-06-16 03:11:33 +02:00
TheAssassin
32dba2942c Fix deployedExecutablePaths 2018-06-16 02:56:46 +02:00
TheAssassin
11c4ca79c4 Temporarily disable MIME checks until fix is available 2018-06-16 02:15:17 +02:00
TheAssassin
b335e65af3 Fix crash 2018-06-16 00:49:18 +02:00
TheAssassin
d0a36af12c Fix deployExecutable, mk. 2 2018-06-15 15:02:24 +02:00
TheAssassin
83656ff656 Replace fts/dirent with boost::filesystem functionality 2018-06-14 21:29:01 +02:00
TheAssassin
7eb7c04ee4 Fix deployExecutable 2018-06-14 21:23:41 +02:00
TheAssassin
14a1702bb5 Show message when deployFile() is called by user 2018-06-13 17:48:57 +02:00
TheAssassin
b0b2862cb4 Remove duplicate space in error message 2018-06-11 23:52:29 +02:00
TheAssassin
8209687bf8 Remove duplicate error message 2018-06-11 23:49:50 +02:00
TheAssassin
5bb8002a09 Improve copyFile 2018-06-11 23:43:21 +02:00
TheAssassin
ee42183205 Add deployFile to AppDir class interface 2018-06-11 23:04:37 +02:00
TheAssassin
333c281c20 Add destination parameter to deployExecutable
Code is mostly shared with deployLibrary's destination code.
TODO: refactor: extract to separate function and use in both places
2018-06-11 23:00:28 +02:00
TheAssassin
5147620250 Add indentation to log output
Makes log output easier to read, and also shows the relations between
the libraries.
2018-06-08 14:49:30 +02:00
TheAssassin
f13d87a88b Improve program flow 2018-06-08 14:20:59 +02:00
TheAssassin
204fb5bada Log library destination on deployment 2018-06-08 14:19:28 +02:00
TheAssassin
e3d554ea1b Fix output path for linuxdeploy binary 2018-06-08 11:55:07 +02:00
TheAssassin
fa2b463363 Calculate relative path from absolute paths
Seems to work without any kind of workarounds.
2018-06-08 11:36:18 +02:00
TheAssassin
720dd68d56 Use 1.67.0 tag instead of master 2018-06-08 03:29:59 +02:00
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
22011ac9bf Merge remote-tracking branch 'origin/master' 2018-06-04 13:43:06 +02:00
TheAssassin
97f4a21fd0 Fix CMAKE_MODULE_PATH 2018-06-04 13:42:52 +02:00
TheAssassin
bc43814608 Use references instead of copying values 2018-06-03 12:52:59 +02:00
TheAssassin
7c0b24c0a2 Fix build deps 2018-06-03 11:29:41 +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
364afc384d Fix libmagic missing dependencies 2018-06-03 02:44:28 +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
d1e2f9a5d9 Add stringStartsWith utility function 2018-06-01 21:43:56 +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