Commit Graph

42 Commits

Author SHA1 Message Date
TheAssassin
3f1a95f891 Set rpath for existing binaries and libraries 2018-06-20 17:47:22 +02:00
TheAssassin
ac2fa3df7d Split off parameters from Exec entries 2018-06-20 16:24:27 +02:00
TheAssassin
4961f16030 Fix log message 2018-06-20 16:24:13 +02:00
TheAssassin
6c6b43a1ce Fix AppRun symlink deployment
Also adds an error check to help debugging such issues in the future.
Thanks @azubieta for reporting the error.
2018-06-19 20:55:22 +02:00
TheAssassin
47295b7a2a Return error if icon can't be found 2018-06-18 04:19:22 +02:00
TheAssassin
9ff15ccd69 Fix desktop file validation error message 2018-06-18 03:13:09 +02:00
TheAssassin
ba50896465 Fix desktop file validation error check 2018-06-18 03:12:54 +02:00
TheAssassin
73482efa53 Fix SVG deployment, mk. 3 2018-06-16 03:50:43 +02:00
TheAssassin
823e9a3cba Fix SVG deployment, mk. 2 2018-06-16 03:41:32 +02:00
TheAssassin
8a48212379 Clean up unused variable 2018-06-16 03:34:24 +02:00
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
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
fa2b463363 Calculate relative path from absolute paths
Seems to work without any kind of workarounds.
2018-06-08 11:36:18 +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
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
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
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
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
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
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
e598536173 Initial commit 2018-05-30 19:21:08 +02:00