🔖 3.1.1

This commit is contained in:
Tw93
2025-01-06 19:47:14 +08:00
parent 5ba013466d
commit f7d46f016a
2 changed files with 5 additions and 5 deletions

8
dist/cli.js vendored
View File

@@ -20,7 +20,7 @@ import * as psl from 'psl';
import isUrl from 'is-url';
var name = "pake-cli";
var version$1 = "3.1.0";
var version$1 = "3.1.1";
var description = "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。";
var engines = {
node: ">=16.0.0"
@@ -486,9 +486,9 @@ async function mergeConfig(url, options, tauriConf) {
// Processing targets are currently only open to Linux.
if (platform === 'linux') {
delete tauriConf.bundle.linux.deb.files;
const validTargets = ['all', 'deb', 'appimage', 'rpm'];
const validTargets = ['deb', 'appimage', 'rpm'];
if (validTargets.includes(options.targets)) {
tauriConf.bundle.targets = options.targets === 'all' ? ['deb', 'appimage', 'rpm'] : [options.targets];
tauriConf.bundle.targets = [options.targets];
}
else {
logger.warn(`✼ The target must be one of ${validTargets.join(', ')}, the default 'deb' will be used.`);
@@ -744,7 +744,7 @@ class LinuxBuilder extends BaseBuilder {
async build(url) {
const targetTypes = ['deb', 'appimage', 'rpm'];
for (const target of targetTypes) {
if (this.options.targets === target || this.options.targets === 'all') {
if (this.options.targets === target) {
await this.buildAndCopy(url, target);
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "pake-cli",
"version": "3.1.0",
"version": "3.1.1",
"description": "🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用。",
"engines": {
"node": ">=16.0.0"