From a67bfa3591d421fb897e32e355f08fb432e5049c Mon Sep 17 00:00:00 2001 From: chrox Date: Mon, 25 Nov 2024 10:12:47 +0100 Subject: [PATCH] Build conf for app store --- apps/readest-app/.gitignore | 13 ++++++++++--- apps/readest-app/package.json | 4 +++- apps/readest-app/scripts/release-mac-appstore.sh | 8 ++++++++ apps/readest-app/src-tauri/tauri.conf.json | 6 +++++- 4 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 apps/readest-app/scripts/release-mac-appstore.sh diff --git a/apps/readest-app/.gitignore b/apps/readest-app/.gitignore index 3deb3e58..c74597a8 100644 --- a/apps/readest-app/.gitignore +++ b/apps/readest-app/.gitignore @@ -28,6 +28,15 @@ yarn-error.log* # local env files .env*.local +# certs and keys +/private_keys + +# plists +*.plist + +# local confs +tauri.*.conf.json + # vercel .vercel @@ -35,10 +44,8 @@ yarn-error.log* *.tsbuildinfo next-env.d.ts -<<<<<<< HEAD:apps/readest-app/.gitignore #generated src-tauri/gen -======= + # vendor /public/vendor ->>>>>>> 8a4b5fb (Fix PDF rendering):apps/digest-app/.gitignore diff --git a/apps/readest-app/package.json b/apps/readest-app/package.json index fe983b0a..d665f6c0 100644 --- a/apps/readest-app/package.json +++ b/apps/readest-app/package.json @@ -18,7 +18,9 @@ "build-win-arm64": "tauri build --target aarch64-pc-windows-msvc --bundles nsis", "build-linux-x64": "tauri build --target x86_64-unknown-linux-gnu --bundles appimage", "build-macos-universial": "dotenv -e .env.apple-nonstore.local -- tauri build -t universal-apple-darwin --bundles dmg", - "build-macos-universial-appstore": "dotenv -e .env.apple-appstore.local -- tauri build -t universal-apple-darwin --bundles dmg" + "build-macos-universial-appstore": "dotenv -e .env.apple-appstore.local -- tauri build -t universal-apple-darwin --bundles app --config src-tauri/tauri.appstore.conf.json", + "build-macos-universial-appstore-dev": "dotenv -e .env.apple-appstore-dev.local -- tauri build -t universal-apple-darwin --bundles app --config src-tauri/tauri.appstore-dev.conf.json", + "release-macos-universial-appstore": "dotenv -e .env.apple-appstore.local -- bash scripts/release-mac-appstore.sh" }, "dependencies": { "@tauri-apps/api": "2.1.1", diff --git a/apps/readest-app/scripts/release-mac-appstore.sh b/apps/readest-app/scripts/release-mac-appstore.sh new file mode 100644 index 00000000..3884ff6a --- /dev/null +++ b/apps/readest-app/scripts/release-mac-appstore.sh @@ -0,0 +1,8 @@ +pnpm run build-macos-universial-appstore + +BUNDLE_DIR=src-tauri/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 \ No newline at end of file diff --git a/apps/readest-app/src-tauri/tauri.conf.json b/apps/readest-app/src-tauri/tauri.conf.json index 75d3ff1a..0b144379 100644 --- a/apps/readest-app/src-tauri/tauri.conf.json +++ b/apps/readest-app/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "../node_modules/@tauri-apps/cli/config.schema.json", "productName": "Readest", - "version": "0.7.0", + "version": "0.7.2", "identifier": "com.bilingify.readest", "build": { "frontendDist": "../out", @@ -32,6 +32,7 @@ "bundle": { "active": true, "targets": "all", + "category": "Productivity", "icon": [ "icons/32x32.png", "icons/128x128.png", @@ -44,6 +45,9 @@ "webviewInstallMode": { "type": "embedBootstrapper" } + }, + "macOS": { + "minimumSystemVersion": "12.0" } }, "plugins": {