Detect and upload macOS DMG bundle

This commit is contained in:
2026-09-04 19:10:21 -07:00
parent b757f741b7
commit eab843aa16

View File

@@ -198,7 +198,7 @@ async function main() {
const targetVersion = version.startsWith('v') ? version.substring(1) : version;
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)) {
const files = fs.readdirSync(nsisDir).filter(f => f.endsWith('.exe') && f.includes(targetVersion));
if (files.length > 0) {
@@ -206,8 +206,8 @@ async function main() {
installerUploadName = files[0].replace(/\s+/g, '-');
}
}
} else if (process.platform === 'darwin') {
const dmgDir = path.join(__dirname, 'src-tauri/target/release/bundle/dmg');
} else {
const dmgDir = path.join(__dirname, 'src-tauri', 'target', 'release', 'bundle', 'dmg');
if (fs.existsSync(dmgDir)) {
const files = fs.readdirSync(dmgDir).filter(f => f.endsWith('.dmg') && f.includes(targetVersion));
if (files.length > 0) {