From e6aaab6936a1b62b1fdae86f0c8fcfc1f14daf10 Mon Sep 17 00:00:00 2001 From: Dylan Myers Date: Tue, 24 Dec 2024 16:51:48 +0000 Subject: [PATCH] 1.5.3 --- app.json | 4 ++-- metadata/com.dylmye.setlists.yml | 10 +++++----- package.json | 4 ++-- scripts/bump-version.ts | 16 ++++++++-------- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app.json b/app.json index 99cdd7c..c4c74ba 100644 --- a/app.json +++ b/app.json @@ -6,7 +6,7 @@ "slug": "setlist-sherlock", "owner": "dylmye", "scheme": "setlist-sherlock", - "version": "1.5.2", + "version": "1.5.3", "orientation": "portrait", "userInterfaceStyle": "automatic", "newArchEnabled": true, @@ -125,4 +125,4 @@ ] ] } -} +} \ No newline at end of file diff --git a/metadata/com.dylmye.setlists.yml b/metadata/com.dylmye.setlists.yml index 99d063e..0e825d0 100644 --- a/metadata/com.dylmye.setlists.yml +++ b/metadata/com.dylmye.setlists.yml @@ -18,9 +18,9 @@ Repo: https://github.com/dylmye/setlist-sherlock.git Binaries: https://github.com/dylmye/setlist-sherlock/releases/download/%v/%v.apk Builds: - - versionName: 1.5.2 - versionCode: 28 - commit: 1.5.2 + - versionName: 1.5.3 + versionCode: 29 + commit: 1.5.3 subdir: android/app sudo: - curl -Lo node.tar.gz https://nodejs.org/dist/v20.18.1/node-v20.18.1-linux-x64.tar.gz @@ -43,5 +43,5 @@ AllowedAPKSigningKeys: f90e81f7e88e4d8c0fa51d9165573aa86ab4cb1384bf94d8bd651e423 AutoUpdateMode: Version UpdateCheckMode: Tags -CurrentVersion: 1.5.2 -CurrentVersionCode: 28 +CurrentVersion: 1.5.3 +CurrentVersionCode: 29 diff --git a/package.json b/package.json index 5377d95..e4440a1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "setlist-sherlock", - "version": "1.5.2", + "version": "1.5.3", "license": "ISC", "private": true, "repository": "https://github.com/dylmye/setlist-sherlock", @@ -112,4 +112,4 @@ } } } -} +} \ No newline at end of file diff --git a/scripts/bump-version.ts b/scripts/bump-version.ts index 370accf..bb8f149 100644 --- a/scripts/bump-version.ts +++ b/scripts/bump-version.ts @@ -19,12 +19,10 @@ const updatePackageJson = async (version: string): Promise => { const updateExpo = async (version: string): Promise => { console.log("Updating app.json..."); const filename = "./app.json"; - const json = await Bun.file(filename).json(); + let json = await Bun.file(filename).json(); + json.expo.version = version; try { - await Bun.write( - filename, - JSON.stringify(Object.assign(json, { expo: { version } }), null, 2), - ); + await Bun.write(filename, JSON.stringify(json, null, 2)); } catch { throw new Error("Unable to update app.json"); } @@ -68,8 +66,8 @@ const updateFdroid = async (version: string): Promise => { commit: version, subdir: "android/app", sudo: [ - "curl -Lo node.tar.gz https://nodejs.org/dist/v18.20.5/node-v18.20.5-linux-x64.tar.gz", - 'echo "e7b80346bb586790ac6b29aa25c96716fcdf6039a6929c2ed506cec09cebc3c0 node.tar.gz" | sha256sum -c -', + "curl -Lo node.tar.gz https://nodejs.org/dist/v20.18.1/node-v20.18.1-linux-x64.tar.gz", + 'echo "259e5a8bf2e15ecece65bd2a47153262eda71c0b2c9700d5e703ce4951572784 node.tar.gz" | sha256sum -c -', "tar xzf node.tar.gz --strip-components=1 -C /usr/local/", "sysctl fs.inotify.max_user_watches=524288 || true", "npm install -g bun", @@ -86,7 +84,9 @@ const updateFdroid = async (version: string): Promise => { // we have to use yes instead of true due to fdroid's formatter! fun! // they also require dumb spacing - const dumpedYaml = dump(Object.assign(fdroidYaml, yamlUpdates), { lineWidth: -1 }) + const dumpedYaml = dump(Object.assign(fdroidYaml, yamlUpdates), { + lineWidth: -1, + }) .replaceAll("'yes'", "yes") .replace("AutoName:", `\nAutoName:`) .replace("RepoType:", `\nRepoType:`)