Merge branch 'master' into dev-gain-structure
commit
510949b059
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Installer>
|
||||
<Name>PA Calculator</Name>
|
||||
<Version>1.2.0</Version>
|
||||
<Title>PA Calculator Installer</Title>
|
||||
<Publisher>DKM-Tech</Publisher>
|
||||
<StartMenuDir>DKM-Tech</StartMenuDir>
|
||||
<TargetDir>@ApplicationsDir@/PA Calculator</TargetDir>
|
||||
</Installer>
|
||||
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Installer>
|
||||
<Name>PA Calculator</Name>
|
||||
<Version>1.1.0</Version>
|
||||
<Version>1.2.0</Version>
|
||||
<Title>PA Calculator Installer</Title>
|
||||
<Publisher>DKM-Tech</Publisher>
|
||||
<StartMenuDir>DKM-Tech</StartMenuDir>
|
||||
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
releaseFolder=$(find ../ -path "*-Release" -type d)
|
||||
fileName="${releaseFolder}/PA Calculator.app"
|
||||
if [[ -e $fileName ]]; then
|
||||
rm -rf "PA Calculator.app"
|
||||
rm -rf "Install PA Calculator.app"
|
||||
rm -rf setup64bit.dmg
|
||||
cp -R "${fileName}" "PA Calculator.app"
|
||||
macdeployqt 'PA Calculator.app'
|
||||
VERSION=$(grep VERSION= "../source/PA_Calculator.pro" | awk -F= '{print $2;exit}')
|
||||
echo "verwendet Version $VERSION"
|
||||
DATE=$(date +%F)
|
||||
sed -i '' 's/<Version>.*<\/Version>/<Version>'"$VERSION"'<\/Version>/g' packages/com.dkmtech.pacalculator/meta/package.xml
|
||||
sed -i '' 's/<ReleaseDate>.*<\/ReleaseDate>/<ReleaseDate>'"$DATE"'<\/ReleaseDate>/g' packages/com.dkmtech.pacalculator/meta/package.xml
|
||||
rm -rf packages/com.dkmtech.pacalculator/data
|
||||
mkdir packages/com.dkmtech.pacalculator/data
|
||||
cp -R 'PA Calculator.app' 'packages/com.dkmtech.pacalculator/data/PA Calculator.app'
|
||||
binarycreator -c config/config_mac.xml -p packages 'Install PA Calculator'
|
||||
rm -rf 'PA Calculator.app'
|
||||
hdiutil create -srcfolder "Install PA Calculator.app" setup64bit.dmg
|
||||
rm -rf "Install PA Calculator.app"
|
||||
echo "Done"
|
||||
else
|
||||
echo "Could not find PA Calculator.app. Please build it first!"
|
||||
fi
|
||||
|
||||
@ -0,0 +1,20 @@
|
||||
@echo off
|
||||
del /s /q setup64bit.exe
|
||||
echo "Ändern Sie alle notwendigen Einstellungen!"
|
||||
packages\com.dkmtech.pacalculator\meta\package.xml
|
||||
cd ..
|
||||
FOR /F "tokens=* USEBACKQ" %%F IN (`dir /b *-Release`) DO (
|
||||
set releaseFolder=%%F
|
||||
)
|
||||
cd %releaseFolder%\Release
|
||||
del /s /q ..\..\installer\packages\com.dkmtech.pacalculator\data\*
|
||||
mkdir ..\..\installer\packages\com.dkmtech.pacalculator\data\setup
|
||||
copy "PA Calculator.exe" "..\..\installer\packages\com.dkmtech.pacalculator\data\setup\PA Calculator.exe"
|
||||
cd ..\..\installer\packages\com.dkmtech.pacalculator\data\setup
|
||||
windeployqt --translations de,en "PA Calculator.exe"
|
||||
7z a -r ../setup *
|
||||
cd ..
|
||||
rmdir /s /q setup
|
||||
cd ..\..\..\
|
||||
binarycreator -c config\config_win.xml -p packages setup64bit.exe
|
||||
del /s packages\com.dkmtech.pacalculator\data\setup.7z
|
||||
Loading…
Reference in New Issue