Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #13829 from bsclifton/fix-quarantine-fix
Browse files Browse the repository at this point in the history
Properly fix custom paths (for quarantine fix)
  • Loading branch information
bsclifton committed Apr 13, 2018
1 parent 76bb290 commit 876b8a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/sessionStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -835,12 +835,12 @@ module.exports.runPreMigrations = (data) => {
const appDirectories = app.getPath('exe').split(path.sep)
// Remove the `Contents`/`MacOS`/`Brave` parts from path
if (appDirectories.length > 3) {
runningAppPath = path.join(...appDirectories.slice(0, appDirectories.length - 3))
runningAppPath = path.sep + path.join(...appDirectories.slice(0, appDirectories.length - 3))
}

execSync('xattr -d com.apple.quarantine /Applications/Brave.app || true')
if (runningAppPath) {
execSync(`xattr -d com.apple.quarantine ${runningAppPath} || true`)
execSync(`xattr -d com.apple.quarantine "${runningAppPath}" || true`)
}
console.log('Update was downloaded from 0.22.13; Quarantine attribute has been removed')
}
Expand Down

0 comments on commit 876b8a1

Please sign in to comment.