crossplatform build scripts that move lang folder

This commit is contained in:
SpikeHD
2022-05-28 21:14:15 -07:00
parent e5c3505131
commit 57cdaa7b7f
3 changed files with 6239 additions and 6196 deletions

3
.gitignore vendored
View File

@@ -21,3 +21,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# moved lang files
/lang

View File

@@ -19,7 +19,10 @@
},
"scripts": {
"start": "cross-env BROWSER=none react-scripts start",
"build": "react-scripts build",
"postbuild:windows": "xcopy /E /H /C /I /Y \".\\src-tauri\\lang\" \".\\src-tauri\\target\\release\\lang\"",
"postbuild:linux": "cp -r \".\\src-tauri\\lang\" \".\\lang\"",
"build:windows": "react-scripts build && tauri build",
"build:linux": "react-scripts build & tauri build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"tauri": "tauri",
@@ -49,6 +52,7 @@
"@typescript-eslint/parser": "^5.22.0",
"cross-env": "^7.0.3",
"eslint": "^8.15.0",
"eslint-plugin-react": "^7.29.4"
"eslint-plugin-react": "^7.29.4",
"run-script-os": "^1.1.6"
}
}

12424
yarn.lock

File diff suppressed because it is too large Load Diff