TTP -> MTP, A lot of other stuff #21
1 changed files with 16 additions and 2 deletions
commit
cc2f790c62
|
|
@ -68,8 +68,22 @@ jobs:
|
||||||
KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
||||||
KEYSTORE_PROPERTIES: ${{ secrets.ANDROID_KEYSTORE_PROPERTIES }}
|
KEYSTORE_PROPERTIES: ${{ secrets.ANDROID_KEYSTORE_PROPERTIES }}
|
||||||
run: |
|
run: |
|
||||||
bun -e "require('fs').writeFileSync('keystore.jks', Buffer.from(process.env.KEYSTORE_BASE64.replace(/\s+/g, ''), 'base64'))"
|
set -eu
|
||||||
bun -e "const content = process.env.KEYSTORE_PROPERTIES.replace(/\\n/g, '\n').replace(/\r/g, '').split('\n').map(l => l.trim()).filter(l => l).join('\n'); require('fs').writeFileSync('keystore.properties', content)"
|
|
||||||
|
ANDROID_DIR="$PWD/apps/tauri/src-tauri/gen/android"
|
||||||
|
|
||||||
|
printf '%s' "$KEYSTORE_BASE64" \
|
||||||
|
| tr -d '[:space:]' \
|
||||||
|
| base64 -d > "$ANDROID_DIR/keystore.jks"
|
||||||
|
|
||||||
|
printf '%s' "$KEYSTORE_PROPERTIES" \
|
||||||
|
| sed 's|storeFile=.*|storeFile=keystore.jks|' \
|
||||||
|
| sed 's/\\n/\n/g' \
|
||||||
|
| tr -d '\r' \
|
||||||
|
> "$ANDROID_DIR/keystore.properties"
|
||||||
|
|
||||||
|
test -s "$ANDROID_DIR/keystore.jks"
|
||||||
|
cat "$ANDROID_DIR/keystore.properties" | sed 's/password=.*/password=***REDACTED***/'
|
||||||
|
|
||||||
- name: Build mobile
|
- name: Build mobile
|
||||||
run: bun run build:mobile
|
run: bun run build:mobile
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue