Commit Graph

84 Commits

Author SHA1 Message Date
TheAssassin 1f498772b4 Properly handle nonexisting files 2019-02-23 18:01:47 +01:00
TheAssassin 956a253428 Return final deployment path
deployFile allows for specifying a directory as destination, and copies
files into there, simulating the behavior of tools like cp. To do that,
it creates the directory, then appends the filename of the input file
to it and uses that as destination for the "copy file" call.

It's pretty handy for some applications to get the full path of the
new file returned by this method directly (doesn't have to implement
this concatenation more than once).
2019-02-06 23:23:48 +01:00
TheAssassin ce6597fb9d Better handle debug-symbols-only ELF files 2019-01-29 01:00:36 +01:00
TheAssassin 8df605cb19 Use shared pointer to manage PImpl object 2019-01-29 00:02:49 +01:00
TheAssassin 5374e7ece9 Switch to extracted desktop file library 2018-12-22 23:09:04 +01:00
TheAssassin 7b16864dbe Add missing return statement 2018-11-19 21:51:26 +01:00
TheAssassin 0b5ab2fc36 Fix return type of setter 2018-11-19 21:51:26 +01:00
TheAssassin 1c4e4a3888 Remove redundant setters/getters 2018-11-15 20:53:16 +01:00
TheAssassin b540240ba5 Improve efficiency 2018-11-09 18:31:19 +01:00
Alexis López Zubieta d9ca907da8 Add symlinkFile to the public AppDir interface (#42)
* Add symlinkFile to the public AppDir interface

* Rename AppDir::symlinkFile to AppDir::createSymlink

* change return value to bool

* Remove duplicated header

* Remove blank lines

* Add comment

* Fix test name

* Change createSymlink signature. Name changed to createRelativeSymlink and remove the useRelativePath argument

* Remove commented tests.
2018-11-05 22:10:18 +01:00
TheAssassin 542edaf410 Allow disabling copyright files deployment for debugging 2018-11-04 17:21:36 +01:00
TheAssassin f1690cc2a3 Use new subprocessing function to create symlinks 2018-10-25 15:18:55 +02:00
TheAssassin 53e0850a2b Use new subprocessing function to handle calls to strip 2018-10-25 15:17:43 +02:00
TheAssassin 83a9690da1 Fix appending of trailing slash 2018-09-04 14:33:25 +02:00
TheAssassin 5fc87e1c1c Fix brackets 2018-09-03 23:33:26 +02:00
TheAssassin 3375de8fc4 Fix path calculation 2018-09-03 23:32:07 +02:00
TheAssassin 906c948304 Move redundant code into separate function 2018-09-03 23:30:53 +02:00
TheAssassin 371343baed Properly set rpath in existing files 2018-09-03 21:07:43 +02:00
TheAssassin f99cac25b5 Deploy 32-bit and 64-bit libraries into separate directories 2018-08-31 19:45:21 +02:00
TheAssassin 9a44a10173 Refactor copyright files deployment 2018-08-30 22:13:01 +02:00
TheAssassin db77174f24 Don't deploy dependencies for existing symlinks
This might lead to unintended side effects, e.g., when bundling
additional resources in a separate prefix for which linuxdeploy is not
needed.
2018-08-27 19:52:36 +02:00
TheAssassin a0b0378d36 Improve handling of strip tool 2018-08-27 19:49:50 +02:00
TheAssassin e8dee64447 Deprecate --app-name
It's been a useful parameter, but only in some rare edge cases. Instead,
we'll focus more on desktop files, e.g., using the Icon entry contents
for (re)naming icons, etc.
2018-08-25 23:46:13 +02:00
TheAssassin 4de8b6589f Remove unused dependency libmagic
Our use of libmagic isn't very portable, and the checks aren't used
anyway. Therefore removing dependency on libmagic.

Fixes #17.
2018-08-20 23:54:35 +02:00
TheAssassin 7184bcb61d Abort if library is missing 2018-08-11 15:30:06 +02:00