build: deploy changes

* moved sample projects from data to user folder
* added fallback files for app and window settings
* implemented copying app and window settings to user folder when not found on app startup
* fixed upgrading for windows installer
This commit is contained in:
malte_langkabel
2016-12-14 13:33:17 +01:00
parent 68a2cb08bc
commit 5482e56e82
191 changed files with 279 additions and 241 deletions
+6 -6
View File
@@ -10,13 +10,13 @@ done
COATI_PATH="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
#setup data folder
if [ ! -d "${HOME}/.config/coati" ]; then
# Control will enter here if $DIRECTORY doesn't exist.
mkdir -p "${HOME}/.config/coati"
echo "First start of Coati from this user, copy default configfiles to ~/.config/coati"
fi
#if [ ! -d "${HOME}/.config/coati" ]; then
## Control will enter here if $DIRECTORY doesn't exist.
#mkdir -p "${HOME}/.config/coati"
#echo "First start of Coati from this user, copy default configfiles to ~/.config/coati"
#fi
cp -rn "$COATI_PATH/user"/* "${HOME}/.config/coati/"
#cp -rn "$COATI_PATH/user"/* "${HOME}/.config/coati/"
export LD_LIBRARY_PATH="$COATI_PATH/lib:$LD_LIBRARY_PATH"
export QT_XKB_CONFIG_ROOT="/usr/share/X11/xkb:$QT_XKB_CONFIG_ROOT"
+4 -8
View File
@@ -77,22 +77,18 @@ cp $APP_NAME $APP_PATH
cp bundle_info.plist $BUNDLE_PATH/Contents/Info.plist
mkdir -p $RES_DIR/data
mkdir -p $RES_DIR/data/projects
cp -R ../data/color_schemes $RES_DIR/data/color_schemes
cp -R ../data/fonts $RES_DIR/data/fonts
cp -R ../data/gui $RES_DIR/data/gui
cp -R ../data/java $RES_DIR/data/java
cp -R ../data/projects/tictactoe $RES_DIR/data/projects/tictactoe
cp -R ../data/projects/tutorial $RES_DIR/data/projects/tutorial
cp -R ../data/projects/javaparser $RES_DIR/data/projects/javaparser
cp -R ../user/projects $RES_DIR/data/projects
mkdir -p $RES_DIR/user
mkdir -p $RES_DIR/user/log
cp ../user/window_settings.ini $RES_DIR/user/window_settings.ini
cp ../user/ApplicationSettings_for_package.xml $RES_DIR/user/ApplicationSettings.xml
cp ../data/fallback/ApplicationSettings.xml $RES_DIR/user/ApplicationSettings.xml
echo -e $INFO "Copying dynamic libraries."
for LIB_PATH in ${DYNLIB_PATHS[@]}
@@ -209,9 +205,9 @@ convert $ICON -resize 1024x1024 $ICON_SET/icon_512x512@2x.png
iconutil -c icns -o $RES_DIR/project.icns $ICON_SET
echo -e $INFO "Obfuscate binary"
# echo -e $INFO "Obfuscate binary"
# upx -1 $APP_PATH
upx --best $APP_PATH
# upx --best $APP_PATH
echo -e $INFO "create DMG"
hdiutil create ${PACKAGE_DIR}.dmg -volname ${PACKAGE_DIR} -srcfolder ${PACKAGE_DIR}