-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Desktop: Seamless-Updates - rename latest-mac.yml to latest-mac-arm64.yml #10985
Conversation
There's an error:
|
packages/app-desktop/package.json
Outdated
@@ -5,7 +5,7 @@ | |||
"main": "main.js", | |||
"private": true, | |||
"scripts": { | |||
"dist": "yarn electronRebuild && npx electron-builder", | |||
"dist": "yarn electronRebuild && npx electron-builder && ./rename.sh", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that can work? electron-builder is going to publish and upload, so by the time you run your rename script it's too late.
Also we generally don't do shell scripts, but whatever works at this point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this is supposed to run on Windows too and shell scripts don't work there (thus why we don't do shell scripts)
@personalizedrefrigerator, since you had implemented the script Alice is basically trying to rename latest-mac.yml to latest-mac-arm64.yml before it's uploaded to the release. From your script it seems you're making changes to the release directly - was it because it wasn't possible to use one of the electron-builder hooks (such as "artifactBuildCompleted")? |
I'm linking to the relevant issue and discussion about this from when |
The above PR's conclusion is: I tested if the hash is computed correctly by generating both latest-mac.yml files with the command |
Yes, but careful with the filename though because, at least in your sample YML content, you are referring a file that won't exist. The arm64 is renamed from "Joplin-3.1.6-arm64.dmg" to "Joplin-3.1.6-arm64.DMG". I assume you should use the same name in your YML file. |
You are right, I modified it and now this is how it is generated:
|
Ok let's try this |
@personalizedrefrigerator I was wondering what command did you run to test your script ? I need GH_REPO and GITHUB_TOKEN. I am using the same script but with added functions to download from GitHub Releases the .dmg and .zip files for arm64, and I want to test this part. Also, how did you test the renaming part ? Did you simply test it directly on GitHub Releases when testing ? |
I remember that being difficult to test... I think I created a test release on my fork of Joplin and modified the CI script so that it would run. An alternative could be to:
|
Thanks! I have managed to simulate the download part. Steps:
|
Continuing to try and rename latest-mac.yml to latest-mac-arm64.yml (Continuation of #10982)