mirror of
https://github.com/readest/readest.git
synced 2026-11-29 19:02:28 +00:00
Some checks are pending
CodeQL Advanced / Analyze (actions) (push) Waiting to run
CodeQL Advanced / Analyze (javascript-typescript) (push) Waiting to run
CodeQL Advanced / Analyze (rust) (push) Waiting to run
Publish Docker image / build (linux/amd64, ubuntu-latest) (push) Waiting to run
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm) (push) Waiting to run
Publish Docker image / merge (push) Blocked by required conditions
PR checks / test_web_app (1) (push) Waiting to run
PR checks / test_web_app (2) (push) Waiting to run
PR checks / rust_lint (push) Waiting to run
PR checks / build_web_app (push) Waiting to run
PR checks / test_extensions (push) Waiting to run
PR checks / build_tauri_app (push) Waiting to run
Scorecard supply-chain security / Scorecard analysis (push) Waiting to run
Deploy to vercel on merge / build_and_deploy (push) Waiting to run
31 lines
No EOL
1.1 KiB
Bash
31 lines
No EOL
1.1 KiB
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Updating bundleVersion in tauri.appstore.conf.json..."
|
|
|
|
CONFIG_FILE="src-tauri/tauri.appstore.conf.json"
|
|
CURRENT_DATE=$(date "+%Y%m%d.%H%M%S")
|
|
|
|
if [ ! -f "$CONFIG_FILE" ]; then
|
|
echo "Error: Config file $CONFIG_FILE not found!"
|
|
exit 1
|
|
fi
|
|
|
|
TMP_FILE=$(mktemp)
|
|
cat "$CONFIG_FILE" | jq --arg version "$CURRENT_DATE" '.bundle.macOS.bundleVersion = $version' > "$TMP_FILE"
|
|
mv "$TMP_FILE" "$CONFIG_FILE"
|
|
echo "Updated bundleVersion to $CURRENT_DATE"
|
|
|
|
echo "Building macOS universal app for App Store..."
|
|
pnpm run build-macos-universial-appstore
|
|
|
|
BUNDLE_DIR=../../target/universal-apple-darwin/release/bundle/macos
|
|
APP_BUNDLE=$BUNDLE_DIR/Readest.app
|
|
INSTALLER_BUNDLE=$BUNDLE_DIR/Readest.pkg
|
|
|
|
xcrun productbuild --sign "$APPLE_INSTALLER_SIGNING_IDENTITY" --component $APP_BUNDLE /Applications $INSTALLER_BUNDLE
|
|
xcrun altool --upload-app --type macos --file $INSTALLER_BUNDLE --apiKey $APPLE_API_KEY --apiIssuer $APPLE_API_ISSUER
|
|
|
|
echo "macOS build uploaded to App Store Connect."
|
|
echo "Submit it to App Store + TestFlight with:"
|
|
echo " pnpm run submit-appstore-macos" |