1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Adjustments for steam china

This commit is contained in:
tobspr
2023-10-13 10:31:03 +02:00
parent 9c1bac5afe
commit 138d2e15fb
36 changed files with 1396 additions and 141 deletions

View File

@@ -9,6 +9,7 @@
* chineseVersion?: boolean,
* wegameVersion?: boolean,
* steamDemo?: boolean,
* steamIsbnVersion?: boolean,
* gogVersion?: boolean
* }}>}
*/
@@ -63,6 +64,13 @@ const BUILD_VARIANTS = {
wegameVersion: true,
},
},
"standalone-steam-isbn": {
standalone: true,
electronBaseDir: "electron_steam_isbn",
buildArgs: {
steamIsbnVersion: true,
},
},
"standalone-gog": {
standalone: true,
electronBaseDir: "electron_gog",

View File

@@ -10,6 +10,7 @@ module.exports = ({
standalone = false,
chineseVersion = false,
wegameVersion = false,
steamIsbnVersion = false,
steamDemo = false,
gogVersion = false,
}) => {
@@ -39,6 +40,8 @@ module.exports = ({
G_APP_ENVIRONMENT: JSON.stringify("dev"),
G_CHINA_VERSION: JSON.stringify(chineseVersion),
G_WEGAME_VERSION: JSON.stringify(wegameVersion),
G_ISBN_VERSION: JSON.stringify(wegameVersion || steamIsbnVersion),
G_STEAM_ISBN_VERSION: JSON.stringify(steamIsbnVersion),
G_GOG_VERSION: JSON.stringify(gogVersion),
G_IS_DEV: "true",
G_IS_RELEASE: "false",

View File

@@ -17,6 +17,7 @@ module.exports = ({
chineseVersion = false,
wegameVersion = false,
steamIsbnVersion = false,
steamDemo = false,
gogVersion = false,
}) => {
@@ -28,6 +29,8 @@ module.exports = ({
G_CHINA_VERSION: JSON.stringify(chineseVersion),
G_WEGAME_VERSION: JSON.stringify(wegameVersion),
G_ISBN_VERSION: JSON.stringify(wegameVersion || steamIsbnVersion),
G_STEAM_ISBN_VERSION: JSON.stringify(steamIsbnVersion),
G_GOG_VERSION: JSON.stringify(gogVersion),
G_IS_RELEASE: environment === "prod" ? "true" : "false",
G_IS_STANDALONE: standalone ? "true" : "false",