mirror of
https://gitlab.com/vyla-entertainment/home.git
synced 2026-11-20 09:07:23 -05:00
Detect and upload macOS DMG bundle
This commit is contained in:
@@ -198,7 +198,7 @@ async function main() {
|
|||||||
const targetVersion = version.startsWith('v') ? version.substring(1) : version;
|
const targetVersion = version.startsWith('v') ? version.substring(1) : version;
|
||||||
|
|
||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
const nsisDir = path.join(__dirname, 'src-tauri/target/release/bundle/nsis');
|
const nsisDir = path.join(__dirname, 'src-tauri', 'target', 'release', 'bundle', 'nsis');
|
||||||
if (fs.existsSync(nsisDir)) {
|
if (fs.existsSync(nsisDir)) {
|
||||||
const files = fs.readdirSync(nsisDir).filter(f => f.endsWith('.exe') && f.includes(targetVersion));
|
const files = fs.readdirSync(nsisDir).filter(f => f.endsWith('.exe') && f.includes(targetVersion));
|
||||||
if (files.length > 0) {
|
if (files.length > 0) {
|
||||||
@@ -206,8 +206,8 @@ async function main() {
|
|||||||
installerUploadName = files[0].replace(/\s+/g, '-');
|
installerUploadName = files[0].replace(/\s+/g, '-');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (process.platform === 'darwin') {
|
} else {
|
||||||
const dmgDir = path.join(__dirname, 'src-tauri/target/release/bundle/dmg');
|
const dmgDir = path.join(__dirname, 'src-tauri', 'target', 'release', 'bundle', 'dmg');
|
||||||
if (fs.existsSync(dmgDir)) {
|
if (fs.existsSync(dmgDir)) {
|
||||||
const files = fs.readdirSync(dmgDir).filter(f => f.endsWith('.dmg') && f.includes(targetVersion));
|
const files = fs.readdirSync(dmgDir).filter(f => f.endsWith('.dmg') && f.includes(targetVersion));
|
||||||
if (files.length > 0) {
|
if (files.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user