pake-cli 0.0.1-beta.14 → 0.0.1-beta.15
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.
- package/bin/builders/MacBuilder.ts +2 -3
- package/dist/cli.js +2 -3
- package/package.json +1 -1
|
@@ -53,11 +53,10 @@ export default class MacBuilder implements IBuilder {
|
|
|
53
53
|
tauriConf.tauri.bundle.identifier = identifier;
|
|
54
54
|
tauriConf.tauri.bundle.icon = [options.icon];
|
|
55
55
|
|
|
56
|
-
const
|
|
57
|
-
const configJsonPath =
|
|
56
|
+
const npmDirectory = path.join(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
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 npmDirectory = path.join(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
61
60
|
const code = await shellExec(`${path.join(npmDirectory, 'node_modules/@tauri-apps/cli/tauri.js')} build --config ${configJsonPath} --target universal-apple-darwin`);
|
|
62
61
|
const dmgName = `${name}_${'0.2.0'}_universal.dmg`;
|
|
63
62
|
const appPath = this.getBuildedAppPath(npmDirectory, dmgName);
|
package/dist/cli.js
CHANGED
|
@@ -356,10 +356,9 @@ class MacBuilder {
|
|
|
356
356
|
tauriConf.package.productName = name;
|
|
357
357
|
tauriConf.tauri.bundle.identifier = identifier;
|
|
358
358
|
tauriConf.tauri.bundle.icon = [options.icon];
|
|
359
|
-
const { path: dirPath } = yield dir();
|
|
360
|
-
const configJsonPath = `${dirPath}/config.json`;
|
|
361
|
-
yield fs.writeFile(configJsonPath, Buffer.from(JSON.stringify(tauriConf), 'utf-8'));
|
|
362
359
|
const npmDirectory = path.join(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
360
|
+
const configJsonPath = path.join(npmDirectory, 'src-tauri/tauri.conf.json');
|
|
361
|
+
yield fs.writeFile(configJsonPath, Buffer.from(JSON.stringify(tauriConf), 'utf-8'));
|
|
363
362
|
yield shellExec(`${path.join(npmDirectory, 'node_modules/@tauri-apps/cli/tauri.js')} build --config ${configJsonPath} --target universal-apple-darwin`);
|
|
364
363
|
const dmgName = `${name}_${'0.2.0'}_universal.dmg`;
|
|
365
364
|
const appPath = this.getBuildedAppPath(npmDirectory, dmgName);
|