mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-10-30 16:51:54 +00:00
Add Steam build commands
This commit is contained in:
parent
c33e34d50d
commit
f645068afb
2
.env.steam-development
Normal file
2
.env.steam-development
Normal file
@ -0,0 +1,2 @@
|
||||
VUE_APP_DEV=true
|
||||
VUE_APP_STEAM=true
|
2
.env.steam-release
Normal file
2
.env.steam-release
Normal file
@ -0,0 +1,2 @@
|
||||
VUE_APP_DEV=false
|
||||
VUE_APP_STEAM=true
|
@ -14,4 +14,4 @@ const commit = {
|
||||
|
||||
const json = JSON.stringify(commit);
|
||||
|
||||
fs.writeFileSync(path.resolve(__dirname, "../../AppFiles/commit.json"), json);
|
||||
fs.writeFileSync(path.resolve(__dirname, "../dist/commit.json"), json);
|
||||
|
@ -2,9 +2,10 @@
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"serve": "node build/check-npm.js && vue-cli-service serve",
|
||||
"build": "node build/pre-build.js && vue-cli-service build --dest ../AppFiles && node build/post-build.js",
|
||||
"build:master": "node build/pre-build.js && vue-cli-service build --mode master && node build/post-build.js",
|
||||
"build:release": "node build/pre-build.js && vue-cli-service build && node build/post-build.js",
|
||||
"build:steam-development": "node build/pre-build.js && vue-cli-service build --mode steam-development",
|
||||
"build:steam-release": "node build/pre-build.js && vue-cli-service build --mode steam-release",
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -2,12 +2,14 @@
|
||||
* @type {import('@vue/cli-service').ProjectOptions}
|
||||
*/
|
||||
|
||||
const isDev = process.env.VUE_APP_DEV === "true";
|
||||
const DEV = process.env.VUE_APP_DEV === "true";
|
||||
const STEAM = process.env.VUE_APP_STEAM === "true";
|
||||
|
||||
module.exports = {
|
||||
publicPath: "./",
|
||||
lintOnSave: false,
|
||||
outputDir: STEAM ? "../AppFiles" : "dist",
|
||||
configureWebpack: {
|
||||
devtool: isDev ? "eval-source-map" : "source-map",
|
||||
devtool: DEV ? "eval-source-map" : "source-map",
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user