Skip to content

Commit

Permalink
Update updateManager for macos with oobee
Browse files Browse the repository at this point in the history
  • Loading branch information
younglim committed Aug 22, 2024
1 parent e1611e6 commit 060d87e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions public/electron/updateManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 060d87e

Please sign in to comment.