mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
refactor: add mulitple customization features
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
DEFAULT_APP_LINK_URL="your.deep.link.host.tld"
|
||||
APP_LINK_URL="${APP_LINK_URL:-$DEFAULT_APP_LINK_URL}"
|
||||
ENTITLEMENTS_FILE="app/ios/App/App/App.entitlements"
|
||||
. $PWD/app.conf
|
||||
|
||||
/usr/libexec/PlistBuddy -c "Delete :com.apple.developer.associated-domains string $APP_LINK_URL" $ENTITLEMENTS_FILE
|
||||
ENTITLEMENTS_FILE="app/ios/App/App/App.entitlements"
|
||||
INFOPLIST_FILE="app/ios/App/App/Info.plist"
|
||||
|
||||
|
||||
/usr/libexec/PlistBuddy -c "Delete :com.apple.developer.associated-domains string applinks:$APP_LINK_HOST" $ENTITLEMENTS_FILE
|
||||
/usr/libexec/PlistBuddy -c "Add :com.apple.developer.associated-domains array" $ENTITLEMENTS_FILE
|
||||
/usr/libexec/PlistBuddy -c "Add :com.apple.developer.associated-domains:0 string $APP_LINK_URL" $ENTITLEMENTS_FILE
|
||||
/usr/libexec/PlistBuddy -c "Add :com.apple.developer.associated-domains:0 string applinks:$APP_LINK_HOST" $ENTITLEMENTS_FILE
|
||||
|
||||
/usr/libexec/PlistBuddy -c "Delete :BGTaskSchedulerPermittedIdentifiers string com.transistorsoft.fetch" $INFOPLIST_FILE
|
||||
/usr/libexec/PlistBuddy -c "Add :BGTaskSchedulerPermittedIdentifiers array" $INFOPLIST_FILE
|
||||
/usr/libexec/PlistBuddy -c "Add :BGTaskSchedulerPermittedIdentifiers:0 string com.transistorsoft.fetch" $INFOPLIST_FILE
|
||||
|
||||
git -C app checkout -- ios/App/App/AppDelegate.swift
|
||||
|
||||
Reference in New Issue
Block a user