fix: globbing for artifacts on windows

This commit is contained in:
Jonas Kruckenberg 2022-05-09 14:32:13 +02:00
parent d32498b700
commit 4728478711
No known key found for this signature in database
GPG Key ID: 21AD3B3C266BDE3D
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
"tauri-build": patch
---
Fix globbing for artifacts on windows.

View File

@ -1,5 +1,5 @@
import {run} from '@tauri-apps/cli'
import {dirname, join, resolve} from 'path'
import {dirname, join, posix, resolve, sep} from 'path'
import glob from 'tiny-glob'
import * as core from '@actions/core'
import {
@ -62,7 +62,7 @@ export async function buildProject(options: BuildOptions): Promise<string[]> {
]
const windowsExts = ['msi', 'msi.zip', 'msi.zip.sig']
const artifactsLookupPattern = join(bundleDir, `*/*.{${[...macOSExts, linuxExts, windowsExts].join(',')}}`)
const artifactsLookupPattern = `${bundleDir}/*/*.{${[...macOSExts, linuxExts, windowsExts].join(',')}}`
core.debug(`Looking for artifacts using this pattern: ${artifactsLookupPattern}`)