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

Support for GOG

This commit is contained in:
tobspr
2022-07-18 14:18:02 +02:00
parent 81e3d2ba76
commit 400ee8e737
12 changed files with 1008 additions and 5 deletions

View File

@@ -8,7 +8,8 @@
* buildArgs: {
* chineseVersion?: boolean,
* wegameVersion?: boolean,
* steamDemo?: boolean
* steamDemo?: boolean,
* gogVersion?: boolean
* }}>}
*/
const BUILD_VARIANTS = {
@@ -62,5 +63,12 @@ const BUILD_VARIANTS = {
wegameVersion: true,
},
},
"standalone-gog": {
standalone: true,
electronBaseDir: "electron_gog",
buildArgs: {
gogVersion: true,
},
},
};
module.exports = { BUILD_VARIANTS };

View File

@@ -11,6 +11,7 @@ module.exports = ({
chineseVersion = false,
wegameVersion = false,
steamDemo = false,
gogVersion = false,
}) => {
return {
mode: "development",
@@ -38,6 +39,7 @@ module.exports = ({
G_APP_ENVIRONMENT: JSON.stringify("dev"),
G_CHINA_VERSION: JSON.stringify(chineseVersion),
G_WEGAME_VERSION: JSON.stringify(wegameVersion),
G_GOG_VERSION: JSON.stringify(gogVersion),
G_IS_DEV: "true",
G_IS_RELEASE: "false",
G_IS_BROWSER: "true",

View File

@@ -18,6 +18,7 @@ module.exports = ({
chineseVersion = false,
wegameVersion = false,
steamDemo = false,
gogVersion = false,
}) => {
const globalDefs = {
assert: "false && window.assert",
@@ -27,6 +28,7 @@ module.exports = ({
G_CHINA_VERSION: JSON.stringify(chineseVersion),
G_WEGAME_VERSION: JSON.stringify(wegameVersion),
G_GOG_VERSION: JSON.stringify(gogVersion),
G_IS_RELEASE: environment === "prod" ? "true" : "false",
G_IS_STANDALONE: standalone ? "true" : "false",
G_IS_STEAM_DEMO: JSON.stringify(steamDemo),