pake-cli 0.0.1-beta.10 → 0.0.1-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,7 +55,7 @@ export default class MacBuilder implements IBuilder {
55
55
  const configJsonPath = `${dirPath}/config.json`;
56
56
  await fs.writeFile(configJsonPath, Buffer.from(JSON.stringify(tauriConf), 'utf-8'));
57
57
 
58
- const code = await shellExec(`npx tauri build --config ${configJsonPath} --target universal-apple-darwin`);
58
+ const code = await shellExec(`${path.join(appRootPath.path, '/node_modules/@tauri-apps/cli/tauri.js')} build --config ${configJsonPath} --target universal-apple-darwin`);
59
59
  const dmgName = `${name}_${'0.2.0'}_universal.dmg`;
60
60
  await fs.copyFile(this.getBuildedAppPath(dmgName), path.resolve(dmgName));
61
61
  }
package/dist/cli.js CHANGED
@@ -360,7 +360,7 @@ class MacBuilder {
360
360
  const { path: dirPath } = yield dir();
361
361
  const configJsonPath = `${dirPath}/config.json`;
362
362
  yield fs.writeFile(configJsonPath, Buffer.from(JSON.stringify(tauriConf), 'utf-8'));
363
- yield shellExec(`npx tauri build --config ${configJsonPath} --target universal-apple-darwin`);
363
+ yield shellExec(`${path.join(appRootPath.path, '/node_modules/@tauri-apps/cli/tauri.js')} build --config ${configJsonPath} --target universal-apple-darwin`);
364
364
  const dmgName = `${name}_${'0.2.0'}_universal.dmg`;
365
365
  yield fs.copyFile(this.getBuildedAppPath(dmgName), path.resolve(dmgName));
366
366
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "0.0.1-beta.10",
3
+ "version": "0.0.1-beta.11",
4
4
  "description": "用 Rust 来打包你的 App,底层使用 Tauri,当前支持微信读书、Flomo、Vercel",
5
5
  "bin": {
6
6
  "pake": "./cli.js"