mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
Compare commits
1 Commits
v1.5.3
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e870423c0 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cultivation",
|
"name": "cultivation",
|
||||||
"version": "1.5.3",
|
"version": "1.5.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@tauri-apps/api": "^1.0.0-rc.5",
|
"@tauri-apps/api": "^1.0.0-rc.5",
|
||||||
|
|||||||
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@@ -959,7 +959,7 @@ checksum = "b365fabc795046672053e29c954733ec3b05e4be654ab130fe8f1f94d7051f35"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cultivation"
|
name = "cultivation"
|
||||||
version = "1.5.3"
|
version = "1.5.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anime-launcher-sdk",
|
"anime-launcher-sdk",
|
||||||
"anyhow",
|
"anyhow",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "cultivation"
|
name = "cultivation"
|
||||||
version = "1.5.3"
|
version = "1.5.1"
|
||||||
description = "A custom launcher for anime game."
|
description = "A custom launcher for anime game."
|
||||||
authors = ["KingRainbow44", "SpikeHD"]
|
authors = ["KingRainbow44", "SpikeHD"]
|
||||||
license = ""
|
license = ""
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -7,7 +7,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "Cultivation",
|
"productName": "Cultivation",
|
||||||
"version": "1.5.3"
|
"version": "1.5.1"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ export default class NewsSection extends React.Component<IProps, IState> {
|
|||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
Work in progress area! These numbers may be outdated, so please do not use them as reference. Latest
|
Work in progress area! These numbers may be outdated, so please do not use them as reference. Latest
|
||||||
version: Grasscutter 1.7.4 - Cultivation 1.5.3
|
version: Grasscutter 1.7.4 - Cultivation 1.5.1
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -50,34 +50,20 @@ export async function getGameDataFolder() {
|
|||||||
|
|
||||||
export async function getGameVersion() {
|
export async function getGameVersion() {
|
||||||
const GameData = await getGameDataFolder()
|
const GameData = await getGameDataFolder()
|
||||||
const platform = await invoke('get_platform')
|
|
||||||
|
|
||||||
if (!GameData) {
|
if (!GameData) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
let hasAsb = await invoke('dir_exists', {
|
const hasAsb = await invoke('dir_exists', {
|
||||||
path: GameData + '\\StreamingAssets\\asb_settings.json',
|
path: GameData + '\\StreamingAssets\\asb_settings.json',
|
||||||
})
|
})
|
||||||
|
|
||||||
if (platform != 'windows') {
|
|
||||||
hasAsb = await invoke('dir_exists', {
|
|
||||||
path: GameData + '/StreamingAssets/asb_settings.json',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!hasAsb) {
|
if (!hasAsb) {
|
||||||
// For games that cannot determine game version
|
// For games that cannot determine game version
|
||||||
let otherGameVer: string = await invoke('read_file', {
|
const otherGameVer: string = await invoke('read_file', {
|
||||||
path: GameData + '\\StreamingAssets\\BinaryVersion.bytes',
|
path: GameData + '\\StreamingAssets\\BinaryVersion.bytes',
|
||||||
})
|
})
|
||||||
|
|
||||||
if (platform != 'windows') {
|
|
||||||
otherGameVer = await invoke('read_file', {
|
|
||||||
path: GameData + '/StreamingAssets/BinaryVersion.bytes',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
const versionRaw = otherGameVer.split('.')
|
const versionRaw = otherGameVer.split('.')
|
||||||
const version = {
|
const version = {
|
||||||
major: parseInt(versionRaw[0]),
|
major: parseInt(versionRaw[0]),
|
||||||
|
|||||||
@@ -3417,9 +3417,9 @@ cross-env@^7.0.3:
|
|||||||
cross-spawn "^7.0.1"
|
cross-spawn "^7.0.1"
|
||||||
|
|
||||||
cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
|
cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.3:
|
||||||
version "7.0.3"
|
version "7.0.6"
|
||||||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6"
|
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"
|
||||||
integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==
|
integrity sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==
|
||||||
dependencies:
|
dependencies:
|
||||||
path-key "^3.1.0"
|
path-key "^3.1.0"
|
||||||
shebang-command "^2.0.0"
|
shebang-command "^2.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user