Skip to content

Commit

Permalink
updating build and release scripts to include ios
Browse files Browse the repository at this point in the history
  • Loading branch information
julianh2o committed Feb 4, 2016
1 parent 874c4ab commit 517dc46
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ run: | osx-x64
android_release: cordova ./build/cordova/build.json
cd ./build/cordova && cordova build --release android

ios_release: cordova ./build/cordova/build.json
cd ./build/cordova && cordova build ios --device

release_all: nwjs_all android_release ios_release




Expand Down
10 changes: 9 additions & 1 deletion tasks/publishrelease
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ then
echo "Publish release cancelled"
else
blue "Building project"
(cd $ROOT; make clean; make nwjs_all)
(cd $ROOT; make clean; make release_all)
(cd $ROOT/build/nwjs/; zipAs linux-x64 FlickerstripApp-Linux64-$RELEASE)
(cd $ROOT/build/nwjs/; zipAs osx-x64 FlickerstripApp-OSX64-$RELEASE)
(cd $ROOT/build/nwjs/; zipAs win-x64 FlickerstripApp-Win64-$RELEASE)
mkdir -p $ROOT/releases
cp $ROOT/build/nwjs/*.zip $ROOT/releases
cp ./build/cordova/platforms/android/build/outputs/apk/android-release.apk ./releases/FlickerstripApp-Android-$RELEASE.apk
cp ./build/cordova/platforms/ios/build/device/Flickerstrip.ipa' ./releases/FlickerstripApp-iOS-$RELEASE.ipa
# Generate json body
DATA_FILE=/tmp/publishreleasedata.json
Expand All @@ -65,6 +67,12 @@ else
blue "Uploading FlickerstripApp-Win64-$RELEASE.zip"
uploadFile $ROOT/releases/FlickerstripApp-Win64-$RELEASE.zip
blue "Uploading FlickerstripApp-Android-$RELEASE.apk"
uploadFile $ROOT/releases/FlickerstripApp-Android-$RELEASE.apk
blue "Uploading FlickerstripApp-iOS-$RELEASE.ipa"
uploadFile $ROOT/releases/FlickerstripApp-iOS-$RELEASE.ipa
blue "Cleaning up"
(cd $ROOT; make clean)
fi
Expand Down

0 comments on commit 517dc46

Please sign in to comment.