Skip to content

Commit

Permalink
Fix decompress zip path (#2755)
Browse files Browse the repository at this point in the history
Since 0.30.2 the decompressed binary path from the signed package has changed

now it doesn't contain the arch suffix

this change handles that
  • Loading branch information
mlsmaycon authored Oct 17, 2024
1 parent ccd4ae6 commit 507a40b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions client/ui/netbird-ui.rb.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ cask "{{ $projectName }}" do
if Hardware::CPU.intel?
url "{{ $amdURL }}"
sha256 "{{ crypto.SHA256 $amdFileBytes }}"
app "netbird_ui_darwin_amd64", target: "Netbird UI.app"
app "netbird_ui_darwin", target: "Netbird UI.app"
else
url "{{ $armURL }}"
sha256 "{{ crypto.SHA256 $armFileBytes }}"
app "netbird_ui_darwin_arm64", target: "Netbird UI.app"
app "netbird_ui_darwin", target: "Netbird UI.app"
end

depends_on formula: "netbird"
Expand All @@ -36,4 +36,4 @@ cask "{{ $projectName }}" do
name "Netbird UI"
desc "Netbird UI Client"
homepage "https://www.netbird.io/"
end
end
2 changes: 1 addition & 1 deletion release_files/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ download_release_binary() {

# Unzip the app and move to INSTALL_DIR
unzip -q -o "$BINARY_NAME"
mv "netbird_ui_${OS_TYPE}_${ARCH}/" "$INSTALL_DIR/"
mv -v "netbird_ui_${OS_TYPE}/" "$INSTALL_DIR/" || mv -v "netbird_ui_${OS_TYPE}_${ARCH}/" "$INSTALL_DIR/"
else
${SUDO} mkdir -p "$INSTALL_DIR"
tar -xzvf "$BINARY_NAME"
Expand Down

0 comments on commit 507a40b

Please sign in to comment.