Initial commit

This commit is contained in:
Rainer Killinger
2021-12-08 17:26:11 +01:00
commit 3afeb0e936
24 changed files with 668 additions and 0 deletions

37
Makefile Normal file
View File

@@ -0,0 +1,37 @@
SHELL = /bin/bash
APP_DIR = $(PWD)/app
VERSION ?= develop
clean:
rm -rf app
clone: clean
sh static/scripts/clone_app.sh ${VERSION}
install: clone
cd app && NG_CLI_ANALYTICS="false" npm ci --unsafe-perm
assets: install
cp -rf customizable/assets/. app/src/assets/ && cp -rf customizable/assets-mobile/. app/resources/
configuration: assets
source app.conf && sh static/scripts/ionic.sh
web-build: configuration
cd app && ionic build --prod
web: web-build
zip -r www.zip app/www
echo "Web application artifact for version ${VERSION} is archived in www.zip"
prepare-android: configuration
source app.conf && cd app && rm -rf android www && ionic capacitor add android && npm run resources:android && ionic capacitor build android --no-open --prod && cd .. && sh static/scripts/android.sh
android: prepare-android
source app.conf && cp -rf static/fastlane-android/. app/android/fastlane/ && cp -rf app.conf app/ios/App/fastlane/.env && cd app/android && bundler exec fastlane android release
prepare-ios: configuration
source app.conf && cd app && rm -rf ios www && ionic capacitor add ios && npm run resources:ios && ionic capacitor build ios --no-open --prod && cd .. && sh static/scripts/ios.sh
ios: prepare-ios
source app.conf && cp -rf static/fastlane-ios/. app/ios/App/fastlane/ && cp -rf app.conf app/ios/App/fastlane/.env && cd app/ios/App && bundler exec fastlane ios release