parent
9c9c3139e4
commit
ba0eca6c21
2 changed files with 69 additions and 67 deletions
@ -1,66 +1,68 @@ |
||||
#!/bin/bash |
||||
|
||||
## Windows Setup script |
||||
## 1. do the build, will not be called from this script |
||||
## 2. call this script |
||||
## 3. all DLLs, and additional needed files are copied to |
||||
## the folder "setup" |
||||
## 4. NSIS is called, to create the setup |
||||
|
||||
# go to script directory |
||||
cd "${0%/*}" |
||||
|
||||
# delete old setup, if there |
||||
echo "clean setup folder" |
||||
|
||||
rm -rf ./setup |
||||
rm -rf xournalpp-setup.exe |
||||
|
||||
mkdir setup |
||||
mkdir setup/bin |
||||
mkdir setup/lib |
||||
mkdir setup/share |
||||
|
||||
echo "build windows launcher" |
||||
./build-launcher.sh |
||||
# done in launcher build script: cp xournalpp.exe setup/bin/ |
||||
|
||||
echo "copy binaries" |
||||
|
||||
cp ../build/src/xournalpp.exe ./setup/bin/xournalpp_bin.exe |
||||
ldd ../build/src/xournalpp.exe | grep '\/mingw.*\.dll' -o | xargs -I{} cp "{}" setup/bin/ |
||||
|
||||
echo "copy ui" |
||||
|
||||
cp -r ../ui setup/ |
||||
|
||||
mkdir -p setup/share/po/cs/LC_MESSAGES |
||||
mkdir -p setup/share/po/zh_HK/LC_MESSAGES |
||||
mkdir -p setup/share/po/de/LC_MESSAGES |
||||
mkdir -p setup/share/po/pl/LC_MESSAGES |
||||
mkdir -p setup/share/po/zh_TW/LC_MESSAGES |
||||
mkdir -p setup/share/po/zh/LC_MESSAGES |
||||
|
||||
cp -r ../po/cs.mo setup/share/po/cs/LC_MESSAGES/xournalpp.mo |
||||
cp -r ../po/zh_HK.mo setup/share/po/zh_HK/LC_MESSAGES/xournalpp.mo |
||||
cp -r ../po/de.mo setup/share/po/de/LC_MESSAGES/xournalpp.mo |
||||
cp -r ../po/pl.mo setup/share/po/pl/LC_MESSAGES/xournalpp.mo |
||||
cp -r ../po/zh_TW.mo setup/share/po/zh_TW/LC_MESSAGES/xournalpp.mo |
||||
cp -r ../po/zh.mo setup/share/po/zh/LC_MESSAGES/xournalpp.mo |
||||
|
||||
echo "copy pixbuf libs" |
||||
cp -r /mingw64/lib/gdk-pixbuf-2.0 setup/lib |
||||
|
||||
echo "copy pixbuf lib dependencies" |
||||
ldd /mingw64/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.dll | grep '\/mingw.*\.dll' -o | xargs -I{} cp "{}" setup/bin/ |
||||
|
||||
echo "copy icons" |
||||
cp -r /mingw64/share/icons setup/share/ |
||||
|
||||
echo "copy glib shared" |
||||
cp -r /mingw64/share/glib-2.0 setup/share/ |
||||
|
||||
echo "pack setup" |
||||
"/c/Program Files (x86)/NSIS/Bin/makensis.exe" xournalpp.nsi |
||||
|
||||
echo "finished" |
||||
#!/bin/bash |
||||
|
||||
## Windows Setup script |
||||
## 1. do the build, will not be called from this script |
||||
## 2. call this script |
||||
## 3. all DLLs, and additional needed files are copied to |
||||
## the folder "setup" |
||||
## 4. NSIS is called, to create the setup |
||||
|
||||
# go to script directory |
||||
cd "${0%/*}" |
||||
|
||||
# delete old setup, if there |
||||
echo "clean setup folder" |
||||
|
||||
rm -rf ./setup |
||||
rm -rf xournalpp-setup.exe |
||||
|
||||
mkdir setup |
||||
mkdir setup/bin |
||||
mkdir setup/lib |
||||
mkdir setup/share |
||||
|
||||
echo "build windows launcher" |
||||
./build-launcher.sh |
||||
# done in launcher build script: cp xournalpp.exe setup/bin/ |
||||
|
||||
echo "copy binaries" |
||||
|
||||
cp ../build/src/xournalpp.exe ./setup/bin/xournalpp_bin.exe |
||||
ldd ../build/src/xournalpp.exe | grep '\/mingw.*\.dll' -o | xargs -I{} cp "{}" setup/bin/ |
||||
|
||||
echo "copy ui" |
||||
|
||||
cp -r ../ui setup/ |
||||
|
||||
supportedLocales=("cs" "de" "it" "pl" "zh" "zh_TW" "zh_HK") |
||||
for locale in "${supportedLocales[@]}" ; do |
||||
echo "Copy locale $locale" |
||||
mkdir -p setup/share/po/cs/LC_MESSAGES |
||||
|
||||
# Xournal Translation |
||||
cp -r ../po/$locale.mo setup/share/po/$locale/LC_MESSAGES/xournalpp.mo |
||||
|
||||
# GTK / GLib Translation |
||||
cp -r /share/locale/$locale/gdk-pixbuf.mo setup/share/po/$locale/LC_MESSAGES/gdk-pixbuf.mo |
||||
cp -r /share/locale/$locale/glib20.mo setup/share/po/$locale/LC_MESSAGES/glib20.mo |
||||
cp -r /share/locale/$locale/gtk30.mo setup/share/po/$locale/LC_MESSAGES/gtk30.mo |
||||
cp -r /share/locale/$locale/gtk30-properties.mo setup/share/po/$locale/LC_MESSAGES/gtk30-properties.mo |
||||
done |
||||
|
||||
echo "copy pixbuf libs" |
||||
cp -r /mingw64/lib/gdk-pixbuf-2.0 setup/lib |
||||
|
||||
echo "copy pixbuf lib dependencies" |
||||
ldd /mingw64/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.dll | grep '\/mingw.*\.dll' -o | xargs -I{} cp "{}" setup/bin/ |
||||
|
||||
echo "copy icons" |
||||
cp -r /mingw64/share/icons setup/share/ |
||||
|
||||
echo "copy glib shared" |
||||
cp -r /mingw64/share/glib-2.0 setup/share/ |
||||
|
||||
echo "pack setup" |
||||
"/c/Program Files (x86)/NSIS/Bin/makensis.exe" xournalpp.nsi |
||||
|
||||
echo "finished" |
||||
|
||||
|
||||
Loading…
Reference in new issue