Skip to content

Commit

Permalink
Refactored AutoUpdaterPoA.ts to include support for macOS by modifyin…
Browse files Browse the repository at this point in the history
…g the line that finds the asset for macOS.
  • Loading branch information
nathansenn committed Aug 22, 2023
1 parent 91a5330 commit fcdcc6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
- name: Check out Git repository
uses: actions/checkout@v1

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # or the specific version you need

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
Expand All @@ -38,4 +43,4 @@ jobs:

# If the commit is tagged with a version (e.g. "v1.0.0"),
# release the app after building
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
4 changes: 3 additions & 1 deletion src/main/AutoUpdaterPoA.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ class PoAInstaller extends EventEmitter {
if (isWin) {
asset = assets.find((a) => a.name.includes('win-main') && a.name.includes('exe'));
} else if (process.platform === 'linux') {
asset = assets.find((a) => a.name.includes(`linux-main-${tag_name}`)); // Modified this line
asset = assets.find((a) => a.name.includes('linux-main')); // Modified this line
} else if (process.platform === 'darwin') {
asset = assets.find((a) => a.name.includes('mac-main') && a.name.includes('dmg'));
}

if (!asset) {
Expand Down

0 comments on commit fcdcc6e

Please sign in to comment.