From 060d87eb23b9d0816dd4fd9636755ca42e2be379 Mon Sep 17 00:00:00 2001 From: younglim Date: Thu, 22 Aug 2024 23:02:15 +0800 Subject: [PATCH] Update updateManager for macos with oobee --- public/electron/updateManager.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/public/electron/updateManager.js b/public/electron/updateManager.js index 35076ff3..86902fe2 100644 --- a/public/electron/updateManager.js +++ b/public/electron/updateManager.js @@ -172,21 +172,21 @@ const downloadAndUnzipFrontendMac = async (tag = undefined) => { const command = ` mkdir -p '${resultsPath}' && - curl -L '${downloadUrl}' -o '${resultsPath}/purple-a11y-desktop-mac.zip' && + curl -L '${downloadUrl}' -o '${resultsPath}/oobee-desktop-mac.zip' && mv '${macOSExecutablePath}' '${path.join( macOSExecutablePath, ".." - )}/Purple A11y Old.app' && - ditto -xk '${resultsPath}/purple-a11y-desktop-mac.zip' '${path.join( + )}/Oobee Old.app' && + ditto -xk '${resultsPath}/oobee-desktop-mac.zip' '${path.join( macOSExecutablePath, ".." )}' && - rm '${resultsPath}/purple-a11y-desktop-mac.zip' && - rm -rf '${path.join(macOSExecutablePath, "..")}/Purple A11y Old.app' && + rm '${resultsPath}/oobee-desktop-mac.zip' && + rm -rf '${path.join(macOSExecutablePath, "..")}/Oobee Old.app' && xattr -rd com.apple.quarantine '${path.join( macOSExecutablePath, ".." - )}/Purple A11y.app' `; + )}/Oobee.app' `; await execCommand(command); };