20 Commits

Author SHA1 Message Date
TheAssassin
3fd595a63b Expose file copying helper in public interface 2019-08-14 01:33:09 +02:00
TheAssassin
3183ee2f4f Mark methods const where possible 2019-07-27 16:37:16 +02:00
TheAssassin
e24b46d291 Change method name to something more meaningful 2019-07-25 17:44:50 +02: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
028d85a070 Explicitly disable all copy/move(-assignment) behavior 2019-01-29 00:03:35 +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
0b5ab2fc36 Fix return type of setter 2018-11-19 21:51:26 +01:00
TheAssassin
d6e6cac6e0 Move libraries into directories following package path 2018-11-10 01:43:36 +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
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
df61b059d3 Force deploy libraries specified on the CLI 2018-06-30 23:27:02 +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
4a31ecb8b9 Allow setting destination directory in deployLibrary() 2018-06-08 03:06:18 +02:00
TheAssassin
54029b53b6 Deploy dependencies for existing files in AppDir 2018-06-03 03:24:29 +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
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