Skip to content

Commit

Permalink
fix: 🐛 Fix auto-update to filter out an interfering -debug package th…
Browse files Browse the repository at this point in the history
…at seems to be generated in recent builds
  • Loading branch information
pvshvp-oss committed Sep 9, 2024
1 parent ba9faec commit f1983a7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.0.53
==============
1. The auto-update is fixed to filter out an interfering -debug package that seems to be generated in recent builds.

Version 0.0.52
==============
1. The ISO Welcome app is set to only update the installer if minor changes like patches are detected (Otherwise the package would have failed to install, and needs a newer ISO).
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@

- [ ] Commit and push all changes through git, for example `git commit -m "Some message" && git push`

- [ ] Create and push a tag, for example `git tag -a v0.0.52 -m "This is version 0.0.52" && git push origin v0.0.52`
- [ ] If there was a mistake and if you want to yank the release, run something like `git tag -d v0.0.52 && git push --delete origin v0.0.52`. Then the errors can be fixed and the previous step can be repeated to create a new tag.
- [ ] Create and push a tag, for example `git tag -a v0.0.53 -m "This is version 0.0.53" && git push origin v0.0.53`
- [ ] If there was a mistake and if you want to yank the release, run something like `git tag -d v0.0.53 && git push --delete origin v0.0.53`. Then the errors can be fixed and the previous step can be repeated to create a new tag.
4 changes: 2 additions & 2 deletions user_interface/gtk/code/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,14 +958,14 @@ def install_latest_installer_github_release(
batch_job += Command.Shell(
"curl --silent"
+ " " + "--output" + " " + download_path + "/" + f"{self.installer_config_package_name_stub}.pkg.tar.zst"
+ " " + "--location" + " " + f"$(curl --silent \'https://api.github.com/repos/{self.installer_config_github_url_stub}/releases/latest\' | jq \'.assets[] | select(.name | endswith(\".zst\")).browser_download_url\' | cat | cut -d \'\"\' -f 2)"
+ " " + "--location" + " " + f"$(curl --silent \'https://api.github.com/repos/{self.installer_config_github_url_stub}/releases/latest\' | jq \'.assets[] | select(.name | endswith(\".zst\")).browser_download_url\' | grep -v debug | cat | cut -d \'\"\' -f 2)"
)
if is_new_installer_github_package_available:
batch_job += LogMessage.Debug(f"Downloading `{self.installer_package_name_stub}` from GitHub...")
batch_job += Command.Shell(
"curl --silent"
+ " " + "--output" + " " + download_path + "/" + f"{self.installer_package_name_stub}.pkg.tar.zst"
+ " " + "--location" + " " + f"$(curl --silent \'https://api.github.com/repos/{self.installer_github_url_stub}/releases/latest\' | jq \'.assets[] | select(.name | endswith(\".zst\")).browser_download_url\' | cat | cut -d \'\"\' -f 2)"
+ " " + "--location" + " " + f"$(curl --silent \'https://api.github.com/repos/{self.installer_github_url_stub}/releases/latest\' | jq \'.assets[] | select(.name | endswith(\".zst\")).browser_download_url\' | grep -v debug | cat | cut -d \'\"\' -f 2)"
)
# batch_job += Command.Shell(
# "rm -rf" + " " + download_path + "/" + "*.md5sum"
Expand Down
6 changes: 5 additions & 1 deletion user_interface/gtk/forms/main.glade
Original file line number Diff line number Diff line change
Expand Up @@ -2083,7 +2083,7 @@
<property name="can-focus">False</property>
<property name="margin-top">5</property>
<property name="margin-bottom">5</property>
<property name="label" translatable="yes">0.0.52</property>
<property name="label" translatable="yes">0.0.53</property>
<attributes>
<attribute name="font-desc" value="Open Sans 11"/>
</attributes>
Expand Down Expand Up @@ -2146,6 +2146,10 @@
<property name="halign">start</property>
<property name="valign">start</property>
<property name="label" translatable="yes">
Version 0.0.53
==============
1. The auto-update is fixed to filter out an interfering -debug package that seems to be generated in recent builds.

Version 0.0.52
==============
1. The ISO Welcome app is set to only update the installer if minor changes like patches are detected (Otherwise the package would have failed to install, and needs a newer ISO).
Expand Down

0 comments on commit f1983a7

Please sign in to comment.