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

Properly fix custom paths (for quarantine fix) #13829

Merged
merged 1 commit into from
Apr 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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