From 3bb17b46fdef67d7187bfdb384560724a42315d3 Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Mon, 21 Nov 2022 21:53:23 +0800 Subject: [PATCH] chore: bump to 0.8.12 --- android/app/build.gradle | 4 ++-- ios/App/App.xcodeproj/project.pbxproj | 8 ++++---- resources/package.json | 2 +- scripts/build-ios.sh | 29 +++++++++++++++++++++++++++ src/main/frontend/version.cljs | 2 +- 5 files changed, 37 insertions(+), 8 deletions(-) create mode 100755 scripts/build-ios.sh diff --git a/android/app/build.gradle b/android/app/build.gradle index 3307e5a6c83..96422aa448e 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -6,8 +6,8 @@ android { applicationId "com.logseq.app" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 45 - versionName "0.8.11" + versionCode 46 + versionName "0.8.12" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/ios/App/App.xcodeproj/project.pbxproj b/ios/App/App.xcodeproj/project.pbxproj index 3555e6435cd..99e8deb4b94 100644 --- a/ios/App/App.xcodeproj/project.pbxproj +++ b/ios/App/App.xcodeproj/project.pbxproj @@ -515,7 +515,7 @@ INFOPLIST_FILE = App/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 0.8.11; + MARKETING_VERSION = 0.8.12; OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\""; PRODUCT_BUNDLE_IDENTIFIER = com.logseq.logseq; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -542,7 +542,7 @@ INFOPLIST_FILE = App/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 0.8.11; + MARKETING_VERSION = 0.8.12; PRODUCT_BUNDLE_IDENTIFIER = com.logseq.logseq; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = ""; @@ -567,7 +567,7 @@ INFOPLIST_KEY_NSHumanReadableCopyright = ""; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; - MARKETING_VERSION = 0.8.11; + MARKETING_VERSION = 0.8.12; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.logseq.logseq.ShareViewController; @@ -594,7 +594,7 @@ INFOPLIST_KEY_NSHumanReadableCopyright = ""; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; - MARKETING_VERSION = 0.8.11; + MARKETING_VERSION = 0.8.12; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.logseq.logseq.ShareViewController; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/resources/package.json b/resources/package.json index 8f45d889d6d..389edd3e83d 100644 --- a/resources/package.json +++ b/resources/package.json @@ -1,7 +1,7 @@ { "name": "Logseq", "productName": "Logseq", - "version": "0.8.11", + "version": "0.8.12", "main": "electron.js", "author": "Logseq", "license": "AGPL-3.0", diff --git a/scripts/build-ios.sh b/scripts/build-ios.sh new file mode 100755 index 00000000000..d380bbefd07 --- /dev/null +++ b/scripts/build-ios.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +set -ex + +unset LOGSEQ_APP_SERVER_URL +export ENABLE_FILE_SYNC_PRODUCTION=true + +# yarn clean +PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn install --force + +rm -rv public/static || true +rm -rv ios/App/App/public || true + +yarn release-app + +rsync -avz --exclude node_modules --exclude '*.js.map' --exclude android ./static/ ./public/static/ + +npx cap sync ios + +npx cap open ios + +echo "step 1(Xcode). Product > Archive (device should be Any iOS Device)" + +echo "step 2(Archive). Distribute App" + +echo " - App Store Connect" +echo " - Upload" +echo " - (Default config, all checked)" +echo " - Upload" diff --git a/src/main/frontend/version.cljs b/src/main/frontend/version.cljs index 12cf9b07490..8c3cd7d25e7 100644 --- a/src/main/frontend/version.cljs +++ b/src/main/frontend/version.cljs @@ -1,3 +1,3 @@ (ns ^:no-doc frontend.version) -(defonce version "0.8.11") +(defonce version "0.8.12")