Skip to content

Commit 03bd1bc

Browse files
committed
Fix update behaviour on macOS .app
1 parent 3a07946 commit 03bd1bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/electron/updateManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ const hashPrepackage = async (prepackagePath) => {
8282
// unzip backend zip for mac
8383
const unzipBackendAndCleanUp = async (zipPath=phZipPath) => {
8484
let unzipCommand = `mkdir -p '${backendPath}' && tar -xf '${zipPath}' -C '${backendPath}' &&
85-
rm '${zipPath}' &&
8685
cd '${backendPath}' &&
8786
'./hats_shell.sh' echo "Initialise"
8887
`;
@@ -278,10 +277,11 @@ const downloadBackend = async (tag=undefined) => {
278277
return async () => await execCommand(command);
279278
};
280279

280+
// MacOS only
281281
const validateZipFile = async (zipPath) => {
282282
const isZipValid = async (zipPath) => {
283283
const command = `
284-
if unzip -t ${zipPath} >/dev/null 2>&1; then
284+
if unzip -t "${zipPath}" >/dev/null 2>&1; then
285285
echo "true"
286286
else
287287
echo "false"

0 commit comments

Comments
 (0)