Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
fix: report final zst installer path
artrixdotdev1c05a1a5781c
diff --git a/bin/builders/BaseBuilder.ts b/bin/builders/BaseBuilder.tsindex fc7ae651..a4899b27 100644--- a/bin/builders/BaseBuilder.ts+++ b/bin/builders/BaseBuilder.ts@@ -155,7 +155,7 @@ export default abstract class BaseBuilder {await shellExec(command);}- async buildAndCopy(url: string, target: string) {+ async buildAndCopy(url: string, target: string, logSuccess = true) {const { name = 'pake-app' } = this.options;await mergeConfig(url, this.options, tauriConfig);@@ -233,8 +233,10 @@ export default abstract class BaseBuilder {}await fsExtra.remove(appPath);- logger.success('✔ Build success!');- logger.success('✔ App installer located in', distPath);+ if (logSuccess) {+ logger.success('✔ Build success!');+ logger.success('✔ App installer located in', distPath);+ }// Log binary location if preservedif (this.options.keepBinary) {diff --git a/bin/builders/LinuxBuilder.ts b/bin/builders/LinuxBuilder.tsindex 9dedb442..000d9ace 100644--- a/bin/builders/LinuxBuilder.ts+++ b/bin/builders/LinuxBuilder.ts@@ -5,6 +5,7 @@ import { PakeAppOptions } from '@/types';import tauriConfig from '@/helpers/tauriConfig';import { shellExec } from '@/utils/shell';import { generateLinuxPackageName } from '@/utils/name';+import logger from '@/options/logger';export default class LinuxBuilder extends BaseBuilder {private buildFormat: string;@@ -71,7 +72,7 @@ export default class LinuxBuilder extends BaseBuilder {if (requestedTargets.includes(target)) {this.currentBuildType = target;if (target === 'zst') {- await this.buildAndCopy(url, 'deb');+ await this.buildAndCopy(url, 'deb', false);await this.createArchPackageFromDeb();} else {await this.buildAndCopy(url, target);@@ -133,6 +134,8 @@ depend = webkit2gtk-4.1`;await fsExtra.writeFile(path.join(dataDir, '.PKGINFO'), pkgInfo);await shellExec(`bsdtar --zstd -cf "${packagePath}" -C "${dataDir}" .`);+ logger.success('✔ Build success!');+ logger.success('✔ App installer located in', packagePath);} finally {await fsExtra.remove(workDir);}@@ -154,9 +157,9 @@ depend = webkit2gtk-4.1}// Override buildAndCopy to ensure currentBuildType is synced if called directly, though the loop above handles it most of the time.- async buildAndCopy(url: string, target: string) {+ async buildAndCopy(url: string, target: string, logSuccess = true) {this.currentBuildType = target;- await super.buildAndCopy(url, target);+ await super.buildAndCopy(url, target, logSuccess);}protected getBuildCommand(packageManager: string = 'pnpm'): string {diff --git a/dist/cli.js b/dist/cli.jsindex 5c71c3d2..4cf675c6 100644--- a/dist/cli.js+++ b/dist/cli.js@@ -991,7 +991,7 @@ class BaseBuilder {const command = `cd "${npmDirectory}" && ${packageManager} run tauri${argSeparator} dev --config "${configPath}" ${featureArgs}`;await shellExec(command);}- async buildAndCopy(url, target) {+ async buildAndCopy(url, target, logSuccess = true) {const { name = 'pake-app' } = this.options;await mergeConfig(url, this.options, tauriConfig);const packageManager = await detectPackageManager();@@ -1052,8 +1052,10 @@ class BaseBuilder {await this.copyRawBinary(npmDirectory, name);}await fsExtra.remove(appPath);- logger.success('✔ Build success!');- logger.success('✔ App installer located in', distPath);+ if (logSuccess) {+ logger.success('✔ Build success!');+ logger.success('✔ App installer located in', distPath);+ }// Log binary location if preservedif (this.options.keepBinary) {const binaryPath = this.getRawBinaryPath(name);@@ -1407,7 +1409,7 @@ class LinuxBuilder extends BaseBuilder {if (requestedTargets.includes(target)) {this.currentBuildType = target;if (target === 'zst') {- await this.buildAndCopy(url, 'deb');+ await this.buildAndCopy(url, 'deb', false);await this.createArchPackageFromDeb();}else {@@ -1459,6 +1461,8 @@ depend = webkit2gtk-4.1`;await fsExtra.writeFile(path.join(dataDir, '.PKGINFO'), pkgInfo);await shellExec(`bsdtar --zstd -cf "${packagePath}" -C "${dataDir}" .`);+ logger.success('✔ Build success!');+ logger.success('✔ App installer located in', packagePath);}finally {await fsExtra.remove(workDir);@@ -1480,9 +1484,9 @@ depend = webkit2gtk-4.1return size;}// Override buildAndCopy to ensure currentBuildType is synced if called directly, though the loop above handles it most of the time.- async buildAndCopy(url, target) {+ async buildAndCopy(url, target, logSuccess = true) {this.currentBuildType = target;- await super.buildAndCopy(url, target);+ await super.buildAndCopy(url, target, logSuccess);}getBuildCommand(packageManager = 'pnpm') {const configPath = path.join('src-tauri', '.pake', 'tauri.conf.json');