Skip to content

Commit

Permalink
1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dylmye committed Dec 24, 2024
1 parent b6617fe commit e6aaab6
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -125,4 +125,4 @@
]
]
}
}
}
10 changes: 5 additions & 5 deletions metadata/com.dylmye.setlists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -43,5 +43,5 @@ AllowedAPKSigningKeys: f90e81f7e88e4d8c0fa51d9165573aa86ab4cb1384bf94d8bd651e423

AutoUpdateMode: Version
UpdateCheckMode: Tags
CurrentVersion: 1.5.2
CurrentVersionCode: 28
CurrentVersion: 1.5.3
CurrentVersionCode: 29
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -112,4 +112,4 @@
}
}
}
}
}
16 changes: 8 additions & 8 deletions scripts/bump-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@ const updatePackageJson = async (version: string): Promise<void> => {
const updateExpo = async (version: string): Promise<void> => {
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");
}
Expand Down Expand Up @@ -68,8 +66,8 @@ const updateFdroid = async (version: string): Promise<void> => {
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",
Expand All @@ -86,7 +84,9 @@ const updateFdroid = async (version: string): Promise<void> => {

// 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:`)
Expand Down

0 comments on commit e6aaab6

Please sign in to comment.