Skip to content

Commit b28c388

Browse files
committed
Bump version
1 parent 4d98cd9 commit b28c388

File tree

7 files changed

+21
-7
lines changed

7 files changed

+21
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cultivation",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"private": true,
55
"dependencies": {
66
"@tauri-apps/api": "^1.0.0-rc.5",

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cultivation"
3-
version = "1.5.1"
3+
version = "1.5.2"
44
description = "A custom launcher for anime game."
55
authors = ["KingRainbow44", "SpikeHD"]
66
license = ""

src-tauri/patch/52version.dll

717 KB
Binary file not shown.

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"package": {
99
"productName": "Cultivation",
10-
"version": "1.5.1"
10+
"version": "1.5.2"
1111
},
1212
"tauri": {
1313
"allowlist": {

src/ui/components/news/NewsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export default class NewsSection extends React.Component<IProps, IState> {
143143
<tr>
144144
<td>
145145
Work in progress area! These numbers may be outdated, so please do not use them as reference. Latest
146-
version: Grasscutter 1.7.4 - Cultivation 1.5.1
146+
version: Grasscutter 1.7.4 - Cultivation 1.5.2
147147
</td>
148148
</tr>
149149
)

src/utils/game.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,34 @@ export async function getGameDataFolder() {
5050

5151
export async function getGameVersion() {
5252
const GameData = await getGameDataFolder()
53+
const platform = await invoke('get_platform')
5354

5455
if (!GameData) {
5556
return null
5657
}
5758

58-
const hasAsb = await invoke('dir_exists', {
59+
let hasAsb = await invoke('dir_exists', {
5960
path: GameData + '\\StreamingAssets\\asb_settings.json',
6061
})
6162

63+
if (platform != 'windows') {
64+
hasAsb = await invoke('dir_exists', {
65+
path: GameData + '/StreamingAssets/asb_settings.json',
66+
})
67+
}
68+
6269
if (!hasAsb) {
6370
// For games that cannot determine game version
64-
const otherGameVer: string = await invoke('read_file', {
71+
let otherGameVer: string = await invoke('read_file', {
6572
path: GameData + '\\StreamingAssets\\BinaryVersion.bytes',
6673
})
74+
75+
if (platform != 'windows') {
76+
otherGameVer = await invoke('read_file', {
77+
path: GameData + '/StreamingAssets/BinaryVersion.bytes',
78+
})
79+
}
80+
6781
const versionRaw = otherGameVer.split('.')
6882
const version = {
6983
major: parseInt(versionRaw[0]),

0 commit comments

Comments
 (0)