fix: use crossenv and implement for windows building

This commit is contained in:
Alphons Joseph
2024-09-07 00:03:15 +08:00
parent a82cd79954
commit f95b845b92
+7 -6
View File
@@ -5,12 +5,12 @@
"description": "Enhance SEQTA Learn's usability and aesthetics! A fork of BetterSEQTA to continue development, and incorporate a plethora of new features!", "description": "Enhance SEQTA Learn's usability and aesthetics! A fork of BetterSEQTA to continue development, and incorporate a plethora of new features!",
"browserslist": "> 0.5%, last 2 versions, not dead", "browserslist": "> 0.5%, last 2 versions, not dead",
"scripts": { "scripts": {
"dev": "MODE=chrome vite dev", "dev": "cross-env MODE=chrome vite dev",
"dev:firefox": "MODE=firefox vite build --watch", "dev:firefox": "cross-env MODE=firefox vite build --watch",
"build": "MODE=chrome vite build && MODE=firefox vite build", "build": "cross-env MODE=chrome vite build && MODE=firefox vite build",
"build:chrome": "MODE=chrome vite build", "build:chrome": "cross-env MODE=chrome vite build",
"build:firefox": "MODE=firefox vite build", "build:firefox": "cross-env MODE=firefox vite build",
"build:safari": "MODE=safari vite build", "build:safari": "cross-env MODE=safari vite build",
"convert:safari": "xcrun safari-web-extension-converter dist/safari --project-location . --app-name $npm_package_name-safari", "convert:safari": "xcrun safari-web-extension-converter dist/safari --project-location . --app-name $npm_package_name-safari",
"release": "gh release create $npm_package_name@$npm_package_version ./dist/*.zip --generate-notes", "release": "gh release create $npm_package_name@$npm_package_version ./dist/*.zip --generate-notes",
"publish": "bun lib/publish.js --b", "publish": "bun lib/publish.js --b",
@@ -34,6 +34,7 @@
"@crxjs/vite-plugin": "^2.0.0-beta.23", "@crxjs/vite-plugin": "^2.0.0-beta.23",
"@types/mime-types": "^2.1.4", "@types/mime-types": "^2.1.4",
"@vitejs/plugin-react-swc": "^3.6.0", "@vitejs/plugin-react-swc": "^3.6.0",
"cross-env": "^7.0.3",
"eslint": "^8.56.0", "eslint": "^8.56.0",
"glob": "^11.0.0", "glob": "^11.0.0",
"mime-types": "^2.1.35", "mime-types": "^2.1.35",