Skip to content

Commit

Permalink
fix version check for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Connoropolous committed Aug 28, 2023
1 parent 4eb797a commit e2614a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/dist/splashscreen.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html><html><head><title>Acorn</title><script defer="defer" src="./splash.js"></script></head><body><div class="splash-wrapper"><div class="splash-image-wrapper"><div class="splash-image-caption">Photograph by Valeriia Miller</div></div><div class="splash-content-wrapper"><div><div class="splash-logo">acorn</div><div class="splash-version">version 8.0.0-alpha</div></div><div class="splash-loading-message" id="activity">Setting up Holochain...</div><div class="splash-description">Acorn is an open-source, peer-to-peer project management application designed and built for distributed software development teams. Acorn functions through defining Intended Outcomes for a project in a Dependency Tree structure.<br/><br/>Acorn is built as a Holochain application, meaning it runs on decentralized peer-to-peer computing and can be used without server infrastructure or a hosting service. The users of a particular Acorn instance are its hosting power.</div><div class="splash-license">© 2020-2022 Harris-Braun Enterprises, LLC.<br/>Licensed under the Cryptographic Autonomy License v1.0.</div></div></div><script>const el = document.getElementById('activity')
<!doctype html><html><head><title>Acorn</title><script defer="defer" src="./splash.js"></script></head><body><div class="splash-wrapper"><div class="splash-image-wrapper"><div class="splash-image-caption">Photograph by Valeriia Miller</div></div><div class="splash-content-wrapper"><div><div class="splash-logo">acorn</div><div class="splash-version">version 8.0.0-alpha</div></div><div class="splash-loading-message" id="activity">Setting up Holochain...</div><div class="splash-description">Acorn is an open-source, peer-to-peer project management application designed and built for distributed software development teams. Acorn functions through defining Intended Outcomes for a project in a Dependency Tree structure.<br/><br/>Acorn is built as a Holochain application, meaning it runs on decentralized peer-to-peer computing and can be used without server infrastructure or a hosting service. The users of a particular Acorn instance are its hosting power.</div><div class="splash-license">© 2020-2023 Harris-Braun Enterprises, LLC.<br/>Licensed under the Cryptographic Autonomy License v1.0.</div></div></div><script>const el = document.getElementById('activity')
require('electron').ipcRenderer.on('status', (event, message) => {
el.innerHTML = message
})</script></body></html>
8 changes: 4 additions & 4 deletions web/src/hooks/useVersionChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const findGithubAssetForPlatformArch = (platform: string, arch: string) => (
) => {
if (platform === 'darwin') {
if (arch === 'arm64') {
return asset.name.includes('mac-arm64')
return asset.name.includes('darwin-arm64')
} else {
return asset.name.includes('mac') && !asset.name.includes('arm64')
return asset.name.includes('darwin') && !asset.name.includes('arm64')
}
} else if (platform === 'win32') {
return asset.name.includes('.exe')
Expand Down Expand Up @@ -36,7 +36,7 @@ const checkForGithubUpdates = async (
findGithubAssetForPlatformArch(platform, arch)
)
if (!asset) {
throw new Error('could not find asset for platform/arch')
throw new Error(`could not find asset for platform ${platform} + arch ${arch}`)
}
return {
name: latestTagName,
Expand All @@ -49,7 +49,7 @@ const checkForGithubUpdates = async (
}
} catch (e) {
console.log(
'could not check for updates. likely cause is no internet connectivity',
'could not check for updates. likely cause is no internet connectivity. here is the error:',
e
)
return null
Expand Down

0 comments on commit e2614a5

Please sign in to comment.