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