更新M1打包结果架构命名
This commit is contained in:
7
bin/builders/MacBuilder.ts
vendored
7
bin/builders/MacBuilder.ts
vendored
@@ -41,7 +41,12 @@ export default class MacBuilder implements IBuilder {
|
|||||||
await mergeTauriConfig(url, options, tauriConf);
|
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:release`);
|
||||||
const arch = process.arch;
|
let arch = "x64";
|
||||||
|
if (process.arch === "arm64") {
|
||||||
|
arch = "aarch64";
|
||||||
|
} else {
|
||||||
|
arch = process.arch;
|
||||||
|
}
|
||||||
const dmgName = `${name}_${tauriConf.package.version}_${arch}.dmg`;
|
const dmgName = `${name}_${tauriConf.package.version}_${arch}.dmg`;
|
||||||
const appPath = this.getBuildedAppPath(npmDirectory, dmgName);
|
const appPath = this.getBuildedAppPath(npmDirectory, dmgName);
|
||||||
const distPath = path.resolve(`${name}.dmg`);
|
const distPath = path.resolve(`${name}.dmg`);
|
||||||
|
|||||||
Reference in New Issue
Block a user