Updated Rust code to apply Windows-specific logic only on x86_64 targets using #[cfg(all(windows, target_arch = "x86_64"))]. Modified dev:tauri script in package.json to remove CLEAN=true and added CLEAN=true to beforeDevCommand in tauri.conf.json for consistency. Minor formatting changes in tauri.conf.json.
62 lines
2.3 KiB
JSON
62 lines
2.3 KiB
JSON
{
|
|
"name": "jan-app",
|
|
"private": true,
|
|
"workspaces": {
|
|
"packages": [
|
|
"core",
|
|
"web-app",
|
|
"tests-e2e-js"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"lint": "yarn workspace @janhq/web-app lint",
|
|
"dev": "yarn dev:tauri",
|
|
"build": "yarn build:web && yarn build:tauri",
|
|
"test": "yarn workspace @janhq/web-app test",
|
|
"test:coverage": "yarn workspace @janhq/web-app test",
|
|
"test:prepare": "yarn build:icon && yarn copy:lib && yarn copy:assets:tauri && yarn build --no-bundle ",
|
|
"test:e2e:linux": "yarn test:prepare && xvfb-run yarn workspace tests-e2-js test",
|
|
"test:e2e:win32": "yarn test:prepare && yarn workspace tests-e2-js test",
|
|
"test:e2e:darwin": "echo 'E2E tests are not supported on macOS yet due to WebDriver limitations'",
|
|
"test:e2e": "run-script-os",
|
|
"dev:web": "yarn workspace @janhq/web-app dev",
|
|
"dev:tauri": "yarn build:icon && yarn copy:assets:tauri && tauri dev",
|
|
"copy:assets:tauri": "cpx \"pre-install/*.tgz\" \"src-tauri/resources/pre-install/\"",
|
|
"download:lib": "node ./scripts/download-lib.mjs",
|
|
"download:bin": "node ./scripts/download-bin.mjs",
|
|
"build:tauri:linux:win32": "yarn download:bin && yarn build:icon && yarn copy:assets:tauri && yarn tauri build",
|
|
"build:tauri:darwin": "yarn build:icon && yarn copy:assets:tauri && yarn tauri build --target universal-apple-darwin",
|
|
"build:tauri": "run-script-os",
|
|
"build:icon": "tauri icon ./src-tauri/icons/icon.png",
|
|
"build:core": "cd core && yarn build && yarn pack",
|
|
"build:web": "yarn workspace @janhq/web-app build",
|
|
"build:extensions": "rimraf ./pre-install/*.tgz || true && yarn workspace @janhq/core build && cd extensions && yarn install && yarn workspaces foreach -Apt run build:publish",
|
|
"prepare": "husky"
|
|
},
|
|
"devDependencies": {
|
|
"@tauri-apps/cli": "^2.2.5",
|
|
"concurrently": "^9.1.0",
|
|
"cpx": "^1.5.0",
|
|
"cross-env": "^7.0.3",
|
|
"husky": "^9.1.5",
|
|
"jest": "^30.0.3",
|
|
"jest-environment-jsdom": "^29.7.0",
|
|
"rimraf": "^3.0.2",
|
|
"run-script-os": "^1.1.6",
|
|
"tar": "^4.4.19",
|
|
"unzipper": "^0.12.3",
|
|
"wait-on": "^7.0.1"
|
|
},
|
|
"version": "0.0.0",
|
|
"installConfig": {
|
|
"hoistingLimits": "workspaces"
|
|
},
|
|
"resolutions": {
|
|
"yallist": "4.0.0"
|
|
},
|
|
"packageManager": "yarn@4.5.3",
|
|
"dependencies": {
|
|
"download-cli": "^1.1.1"
|
|
}
|
|
}
|