更改默认打包命令
This commit is contained in:
@@ -146,7 +146,7 @@ npm i
|
||||
npm run dev
|
||||
|
||||
// 打包应用
|
||||
npm run build:release
|
||||
npm run build
|
||||
|
||||
```
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ npm i
|
||||
npm run dev
|
||||
|
||||
// Pack application
|
||||
npm run build:release
|
||||
npm run build
|
||||
|
||||
```
|
||||
|
||||
|
||||
2
bin/builders/LinuxBuilder.ts
vendored
2
bin/builders/LinuxBuilder.ts
vendored
@@ -61,7 +61,7 @@ Terminal=false
|
||||
Type=Application
|
||||
`
|
||||
await fs.writeFile(assertPath, desktopStr);
|
||||
const _ = await shellExec(`cd ${npmDirectory} && npm install && npm run build:release`);
|
||||
const _ = await shellExec(`cd ${npmDirectory} && npm install && npm run build`);
|
||||
let arch = "";
|
||||
if (process.arch === "x64") {
|
||||
arch = "amd64";
|
||||
|
||||
2
bin/builders/MacBuilder.ts
vendored
2
bin/builders/MacBuilder.ts
vendored
@@ -40,7 +40,7 @@ export default class MacBuilder implements IBuilder {
|
||||
|
||||
await mergeTauriConfig(url, options, tauriConf);
|
||||
|
||||
const _ = await shellExec(`cd ${npmDirectory} && npm install && npm run build:release`);
|
||||
const _ = await shellExec(`cd ${npmDirectory} && npm install && npm run build`);
|
||||
let arch = "x64";
|
||||
if (process.arch === "arm64") {
|
||||
arch = "aarch64";
|
||||
|
||||
2
bin/builders/WinBulider.ts
vendored
2
bin/builders/WinBulider.ts
vendored
@@ -47,7 +47,7 @@ export default class WinBuilder implements IBuilder {
|
||||
|
||||
await mergeTauriConfig(url, options, tauriConf);
|
||||
|
||||
const _ = await shellExec(`cd ${npmDirectory} && npm install && npm run build:release`);
|
||||
const _ = await shellExec(`cd ${npmDirectory} && npm install && npm run build`);
|
||||
const language = tauriConf.tauri.bundle.windows.wix.language[0];
|
||||
const arch = process.arch;
|
||||
const msiName = `${name}_${tauriConf.package.version}_${arch}_${language}.msi`;
|
||||
|
||||
8
dist/cli.js
vendored
8
dist/cli.js
vendored
@@ -1996,7 +1996,7 @@ class MacBuilder {
|
||||
log.debug('PakeAppOptions', options);
|
||||
const { name } = options;
|
||||
yield mergeTauriConfig(url, options, tauriConf);
|
||||
yield shellExec(`cd ${npmDirectory} && npm install && npm run build:release`);
|
||||
yield shellExec(`cd ${npmDirectory} && npm install && npm run build`);
|
||||
let arch = "x64";
|
||||
if (process.arch === "arm64") {
|
||||
arch = "aarch64";
|
||||
@@ -2046,7 +2046,7 @@ class WinBuilder {
|
||||
logger.debug('PakeAppOptions', options);
|
||||
const { name } = options;
|
||||
yield mergeTauriConfig(url, options, tauriConf);
|
||||
yield shellExec(`cd ${npmDirectory} && npm install && npm run build:release`);
|
||||
yield shellExec(`cd ${npmDirectory} && npm install && npm run build`);
|
||||
const language = tauriConf.tauri.bundle.windows.wix.language[0];
|
||||
const arch = process.arch;
|
||||
const msiName = `${name}_${tauriConf.package.version}_${arch}_${language}.msi`;
|
||||
@@ -2106,7 +2106,7 @@ Terminal=false
|
||||
Type=Application
|
||||
`;
|
||||
yield fs.writeFile(assertPath, desktopStr);
|
||||
yield shellExec(`cd ${npmDirectory} && npm install && npm run build:release`);
|
||||
yield shellExec(`cd ${npmDirectory} && npm install && npm run build`);
|
||||
let arch = "";
|
||||
if (process.arch === "x64") {
|
||||
arch = "amd64";
|
||||
@@ -2168,7 +2168,7 @@ var scripts = {
|
||||
start: "npm run dev",
|
||||
dev: "npm run tauri dev",
|
||||
"dev:debug": "npm run tauri dev -- --features devtools",
|
||||
"build:release": "npm run tauri build --release",
|
||||
build: "npm run tauri build --release",
|
||||
"build:all-unix": "chmod +x ./script/build.sh && ./script/build.sh",
|
||||
"build:all-windows": ".\\script\\build.bat",
|
||||
tauri: "tauri",
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
"dev": "npm run tauri dev",
|
||||
"dev:debug": "npm run tauri dev -- --features devtools",
|
||||
"build": "npm run tauri build --release",
|
||||
"build:release": "npm run tauri build --release",
|
||||
"build:all-unix": "chmod +x ./script/build.sh && ./script/build.sh",
|
||||
"build:all-windows": ".\\script\\build.bat",
|
||||
"tauri": "tauri",
|
||||
|
||||
Reference in New Issue
Block a user