mirror of
https://github.com/JonasKruckenberg/tauri-build.git
synced 2025-08-14 21:05:05 +00:00
fix: globbing for artifacts on windows
This commit is contained in:
parent
d32498b700
commit
4728478711
5
.changes/fix-glob-on-windows.md
Normal file
5
.changes/fix-glob-on-windows.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"tauri-build": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix globbing for artifacts on windows.
|
@ -1,5 +1,5 @@
|
|||||||
import {run} from '@tauri-apps/cli'
|
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 glob from 'tiny-glob'
|
||||||
import * as core from '@actions/core'
|
import * as core from '@actions/core'
|
||||||
import {
|
import {
|
||||||
@ -62,7 +62,7 @@ export async function buildProject(options: BuildOptions): Promise<string[]> {
|
|||||||
]
|
]
|
||||||
const windowsExts = ['msi', 'msi.zip', 'msi.zip.sig']
|
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}`)
|
core.debug(`Looking for artifacts using this pattern: ${artifactsLookupPattern}`)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user