Skip to content

Commit

Permalink
🔖 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tw93 committed Jan 6, 2025
1 parent 5ba0134 commit f7d46f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dist/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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.`);
Expand Down Expand Up @@ -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);
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit f7d46f0

Please sign in to comment.