mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-13 23:54:48 +01:00
fix scripts
This commit is contained in:
@@ -21,8 +21,9 @@
|
|||||||
"start": "cross-env BROWSER=none react-scripts start",
|
"start": "cross-env BROWSER=none react-scripts start",
|
||||||
"postbuild:windows": "xcopy /E /H /C /I /Y \".\\src-tauri\\lang\" \".\\src-tauri\\target\\release\\lang\"",
|
"postbuild:windows": "xcopy /E /H /C /I /Y \".\\src-tauri\\lang\" \".\\src-tauri\\target\\release\\lang\"",
|
||||||
"postbuild:linux": "cp -r \".\\src-tauri\\lang\" \".\\lang\"",
|
"postbuild:linux": "cp -r \".\\src-tauri\\lang\" \".\\lang\"",
|
||||||
"build:windows": "react-scripts build && tauri build",
|
"build:windows": "yarn tauri build",
|
||||||
"build:linux": "react-scripts build & tauri build",
|
"build:linux": "yarn tauri build",
|
||||||
|
"build": "react-scripts build && run-script-os",
|
||||||
"test": "react-scripts test",
|
"test": "react-scripts test",
|
||||||
"eject": "react-scripts eject",
|
"eject": "react-scripts eject",
|
||||||
"tauri": "tauri",
|
"tauri": "tauri",
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "..\\node_modules/@tauri-apps/cli\\schema.json",
|
"$schema": "..\\node_modules/@tauri-apps/cli\\schema.json",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeBuildCommand": "yarn build",
|
|
||||||
"beforeDevCommand": "yarn start",
|
"beforeDevCommand": "yarn start",
|
||||||
"devPath": "http://localhost:3000",
|
"devPath": "http://localhost:3000",
|
||||||
"distDir": "../build"
|
"distDir": "../build"
|
||||||
|
|||||||
Reference in New Issue
Block a user