diff --git a/mobile/prepare_ios.sh b/mobile/prepare_ios.sh new file mode 100755 index 00000000..8049b11c --- /dev/null +++ b/mobile/prepare_ios.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +rm -rf node_modules +rm -rf platforms +rm -rf plugins + +gpg --quiet --batch --yes --decrypt --passphrase="${SECRET}" --output GoogleService-Info.plist ../.github/secrets/GoogleService-Info.plist.gpg +gpg --quiet --batch --yes --decrypt --passphrase="${SECRET}" --output google-services.json ../.github/secrets/google-services.json.gpg +gpg --quiet --batch --yes --decrypt --passphrase="${SECRET}" --output resources/bell.mp3 ../.github/secrets/bell.mp3.gpg + +cd ../webui +npm install +npm run build-mobile +cd ../mobile +npm install -g cordova cordova-res +cordova platform add ios@latest +npm install +cordova-res