mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-11 12:12:55 +00:00
refactor: add mulitple customization features
This commit is contained in:
42
Makefile
42
Makefile
@@ -1,12 +1,12 @@
|
||||
SHELL = /bin/bash
|
||||
APP_DIR = $(PWD)/app
|
||||
VERSION ?= develop
|
||||
SHELL := /bin/bash
|
||||
APP_DIR := $(PWD)/app
|
||||
BRANCH ?= develop
|
||||
|
||||
clean:
|
||||
rm -rf app
|
||||
|
||||
clone: clean
|
||||
sh static/scripts/clone_app.sh ${VERSION}
|
||||
sh static/scripts/clone_app.sh ${BRANCH}
|
||||
|
||||
install: clone
|
||||
cd app && NG_CLI_ANALYTICS="false" npm ci --unsafe-perm
|
||||
@@ -14,24 +14,38 @@ install: clone
|
||||
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
|
||||
configuration-web: assets
|
||||
sh static/scripts/ionic.sh
|
||||
|
||||
web-build: configuration
|
||||
configuration-android: assets
|
||||
CONFIG_MODE=ANDROID sh static/scripts/ionic.sh
|
||||
|
||||
configuration-ios: assets
|
||||
CONFIG_MODE=IOS sh static/scripts/ionic.sh
|
||||
|
||||
web-build: configuration-web
|
||||
cd app && ionic build --prod
|
||||
|
||||
web: web-build
|
||||
zip -r www.zip app/www
|
||||
cd app && zip -r ../www.zip 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
|
||||
prepare-android: configuration-android
|
||||
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
|
||||
cp -rf static/fastlane-android/. app/android/fastlane/ && cp -rf app.conf app/android/.env
|
||||
|
||||
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
|
||||
cd app/android && bundler exec fastlane android release
|
||||
|
||||
prepare-ios: configuration
|
||||
android-beta: prepare-android
|
||||
cd app/android && bundler exec fastlane android beta
|
||||
|
||||
prepare-ios: configuration-ios
|
||||
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
|
||||
cp -rf static/fastlane-ios/. app/ios/App/fastlane/ && cp -rf app.conf app/ios/App/fastlane/.env
|
||||
|
||||
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
|
||||
ios: prepare-ios
|
||||
cd app/ios/App && bundler exec fastlane ios release
|
||||
|
||||
ios-beta: prepare-ios
|
||||
cd app/ios/App && bundler exec fastlane ios beta
|
||||
|
||||
Reference in New Issue
Block a user