pake-cli 0.0.1-beta.15 → 0.0.1-beta.16

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.
@@ -57,7 +57,7 @@ export default class MacBuilder implements IBuilder {
57
57
  const configJsonPath = path.join(npmDirectory, 'src-tauri/tauri.conf.json');
58
58
  await fs.writeFile(configJsonPath, Buffer.from(JSON.stringify(tauriConf), 'utf-8'));
59
59
 
60
- const code = await shellExec(`${path.join(npmDirectory, 'node_modules/@tauri-apps/cli/tauri.js')} build --config ${configJsonPath} --target universal-apple-darwin`);
60
+ const code = await shellExec(`cd ${npmDirectory} && npm run build`);
61
61
  const dmgName = `${name}_${'0.2.0'}_universal.dmg`;
62
62
  const appPath = this.getBuildedAppPath(npmDirectory, dmgName);
63
63
  await fs.copyFile(appPath, path.resolve(dmgName));
package/dist/cli.js CHANGED
@@ -359,7 +359,7 @@ class MacBuilder {
359
359
  const npmDirectory = path.join(path.dirname(fileURLToPath(import.meta.url)), '..');
360
360
  const configJsonPath = path.join(npmDirectory, 'src-tauri/tauri.conf.json');
361
361
  yield fs.writeFile(configJsonPath, Buffer.from(JSON.stringify(tauriConf), 'utf-8'));
362
- yield shellExec(`${path.join(npmDirectory, 'node_modules/@tauri-apps/cli/tauri.js')} build --config ${configJsonPath} --target universal-apple-darwin`);
362
+ yield shellExec(`cd ${npmDirectory} && npm run build`);
363
363
  const dmgName = `${name}_${'0.2.0'}_universal.dmg`;
364
364
  const appPath = this.getBuildedAppPath(npmDirectory, dmgName);
365
365
  yield fs.copyFile(appPath, path.resolve(dmgName));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pake-cli",
3
- "version": "0.0.1-beta.15",
3
+ "version": "0.0.1-beta.16",
4
4
  "description": "用 Rust 来打包你的 App,底层使用 Tauri,当前支持微信读书、Flomo、Vercel",
5
5
  "bin": {
6
6
  "pake": "./cli.js"