Change urls for mac to download

develop v3.18.1
aandrew-me 1 year ago
parent ab83127dac
commit 5293ef9015

@ -39,7 +39,7 @@ jobs:
- name: Macos Intel Build
if: matrix.os == 'macos-13'
run: |
curl https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg_mac_amd64 -o ffmpeg
curl -L https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg_mac_amd64 -o ffmpeg
chmod +x ffmpeg
npm i
npm run gh-mac
@ -47,7 +47,7 @@ jobs:
- name: Macos Arm Build
if: matrix.os == 'macos-latest'
run: |
curl https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg_mac_arm64 -o ffmpeg
curl -L https://github.com/aandrew-me/ffmpeg-builds/releases/download/v6/ffmpeg_mac_arm64 -o ffmpeg
chmod +x ffmpeg
npm i
npm run gh-mac

@ -283,9 +283,15 @@ ipcMain.on("autoUpdate", (event, status) => {
};
dialog.showMessageBox(dialogOpts).then((returnValue) => {
if (returnValue.response === 0) {
shell.openExternal(
"https://github.com/aandrew-me/ytDownloader/releases/latest/download/YTDownloader_Mac.dmg"
);
if (process.arch === 'x64') {
shell.openExternal(
"https://github.com/aandrew-me/ytDownloader/releases/latest/download/YTDownloader_Mac_x64.dmg"
);
} else {
shell.openExternal(
"https://github.com/aandrew-me/ytDownloader/releases/latest/download/YTDownloader_Mac_arm64.dmg"
);
}
}
});
}

Loading…
Cancel
Save