Fix release asset updates
CI / test (push) Successful in 37s
Release / release (push) Failing after 35s

This commit is contained in:
2026-06-09 16:12:54 +09:00
parent ab46799818
commit 203320647c
2 changed files with 24 additions and 6 deletions
+4 -5
View File
@@ -116,17 +116,16 @@ fn update(force: bool) -> Result<UpdateResult, String> {
curl -fsSL {} -o \"$tmp/openstock.tar.gz\"\n\
tar -xzf \"$tmp/openstock.tar.gz\" -C \"$tmp\"\n\
test -x \"$tmp/openstock\"\n\
mkdir -p {}\n\
target={}\n\
tmp_target=\"{}/.openstock.tmp.$$\"\n\
install_dir={}\n\
mkdir -p \"$install_dir\"\n\
target=\"$install_dir/openstock\"\n\
tmp_target=\"$install_dir/.openstock.tmp.$$\"\n\
cp \"$tmp/openstock\" \"$tmp_target\"\n\
chmod 755 \"$tmp_target\"\n\
mv -f \"$tmp_target\" \"$target\"\n\
printf 'installed: %s\\n' \"$target\"\n",
shell_quote(&asset.browser_download_url),
shell_quote(&install_dir.display().to_string()),
shell_quote(&install_dir.join("openstock").display().to_string()),
shell_quote(&install_dir.display().to_string()),
);
let output = Command::new("sh")
.arg("-c")