Skip to content

Commit

Permalink
Fix minor error in patchTauri.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
HeavenVolkoff committed May 4, 2024
1 parent bbbade1 commit a51576b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/utils/patchTauri.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export async function patchTauri(root, nativeDeps, targets, bundles, args) {
.then(JSON.parse)

if (bundles.length === 0) {
const defaultBundles = tauriConfig.tauri?.bundle?.targets
const defaultBundles = tauriConfig?.bundle?.targets
if (Array.isArray(defaultBundles)) bundles.push(...defaultBundles)
if (bundles.length === 0) bundles.push('all')
}
Expand All @@ -113,7 +113,7 @@ export async function patchTauri(root, nativeDeps, targets, bundles, args) {
if (osType === 'Darwin') {
const macOSArm64MinimumVersion = '11.0'

let macOSMinimumVersion = tauriConfig?.tauri?.bundle?.macOS?.minimumSystemVersion
let macOSMinimumVersion = tauriConfig?.bundle?.macOS?.minimumSystemVersion

if (
(targets.includes('aarch64-apple-darwin') ||
Expand Down

0 comments on commit a51576b

Please sign in to comment.