Skip to content

Commit

Permalink
Add updater artifacts when available (#129)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
  • Loading branch information
lemarier and lucasfernog committed May 13, 2021
1 parent b4b20f9 commit 0e9704e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changes/updater-artifacts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@tauri-apps/action-core": patch
"action": patch
---

Include updater artifacts if available.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"exceptionDomain": ""
}
},
"updater": {
"active": true
},
"allowlist": {
"all": true
},
Expand Down
24 changes: 24 additions & 0 deletions packages/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,29 @@ export async function buildProject(
join(
artifactsPath,
`bundle/macos/${appName}.app`
),
join(
artifactsPath,
`bundle/macos/${appName}.app.tar.gz`
),
join(
artifactsPath,
`bundle/macos/${appName}.app.tar.gz.sig`
)
]
case 'win32':
return [
join(
artifactsPath,
`bundle/msi/${appName}_${app.version}_${process.arch}.msi`
),
join(
artifactsPath,
`bundle/msi/${appName}_${app.version}_${process.arch}.msi.zip`
),
join(
artifactsPath,
`bundle/msi/${appName}_${app.version}_${process.arch}.msi.zip.sig`
)
]
default:
Expand All @@ -260,6 +276,14 @@ export async function buildProject(
join(
artifactsPath,
`bundle/appimage/${appName}_${app.version}_${arch}.AppImage`
),
join(
artifactsPath,
`bundle/appimage/${appName}_${app.version}_${arch}.AppImage.zip`
),
join(
artifactsPath,
`bundle/appimage/${appName}_${app.version}_${arch}.AppImage.zip.sig`
)
]
}
Expand Down

0 comments on commit 0e9704e

Please sign in to comment.