-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f21b19
commit 830e1c2
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
= Release HowTo | ||
|
||
== Mac | ||
* use `macdeployqt` on the `.app` file | ||
* create DMG using 'Disc Utility' | ||
* convert DMG using `hdiutil convert -format UDZO -o our_app_ready.dmg our_app.dmg` | ||
* ship it | ||
|
||
== Windows | ||
* use `windeployqt` on the `.exe` file | ||
* add the following files, which don't get added by windeployqt | ||
** `libstdc++-6.dll` | ||
** `libwinpthread-1.dll` | ||
** `libgcc_s_dw2-1.dll` | ||
* zip it | ||
* ship it | ||
|
||
== Linux | ||
The directory structure for Linux deployment looks as follows: | ||
|
||
* `./MrWriter` (shell-script) | ||
* `./bin` | ||
* `./bin/platforms` | ||
* `./libs` | ||
|
||
The content of `MrWriter` (shell-script) | ||
[source,bash] | ||
.MrWriter | ||
---- | ||
#!/bin/sh | ||
appname=`basename $0 | sed s,\.sh$,,` | ||
dirname=`dirname $0` | ||
tmp="${dirname#?}" | ||
if [ "${dirname%$tmp}" != "/" ]; then | ||
dirname=$PWD/$dirname | ||
fi | ||
LD_LIBRARY_PATH=$dirname/libs | ||
export LD_LIBRARY_PATH | ||
$dirname/bin/$appname "$@" | ||
---- | ||
|
||
Follow these steps | ||
|
||
* copy the executable to `./bin` | ||
* use ldd on the executable | ||
* copy all the `.so.*` files associated with Qt5 to `./libs` | ||
* copy `libqxcb.so` to `./bin/platforms` | ||
* use `ldd` on `libqxcb.so` | ||
* copy all the .so.* files associated with Qt5 to `./libs` | ||
* tar.gz it | ||
* ship it |