From 78093f835432646aafddb93a08610a7dd8cbe00d Mon Sep 17 00:00:00 2001 From: jeasonnow Date: Wed, 31 Jul 2024 13:08:00 +0800 Subject: [PATCH] fix: #759 support rpm bundle --- bin/helpers/merge.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/helpers/merge.ts b/bin/helpers/merge.ts index c334a9e..dcdf6c9 100644 --- a/bin/helpers/merge.ts +++ b/bin/helpers/merge.ts @@ -94,9 +94,9 @@ export async function mergeConfig(url: string, options: PakeAppOptions, tauriCon // Processing targets are currently only open to Linux. if (platform === 'linux') { delete tauriConf.bundle.linux.deb.files; - const validTargets = ['all', 'deb', 'appimage']; + const validTargets = ['all', 'deb', 'appimage', 'rpm']; if (validTargets.includes(options.targets)) { - tauriConf.bundle.targets = options.targets === 'all' ? ['deb', 'appimage'] : [options.targets]; + tauriConf.bundle.targets = options.targets === 'all' ? ['deb', 'appimage', 'rpm'] : [options.targets]; } else { logger.warn(`✼ The target must be one of ${validTargets.join(', ')}, the default 'deb' will be used.`); }