Created
February 5, 2018 21:54
-
-
Save rickheil/41eb811b7530be5d09a0024a72f43763 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /Applications/Slack.app/Contents/Resources/app.asar | grep --text -C 6 SLACK_NO_AUTO_UPDATES | |
const reasons: Array<string> = []; | |
if (getSetting<boolean>(store, 'isDevMode')) reasons.push('Developer build'); | |
if (process.mas) reasons.push('Mac App Store build'); | |
if (process.windowsStore) reasons.push('Windows Store build'); | |
if (process.platform === 'linux') reasons.push('using Linux'); | |
if (process.env.SLACK_NO_AUTO_UPDATES) reasons.push('updates disabled in environment'); | |
const tempDirectory = process.env.TMPDIR || process.env.TEMP || '/tmp'; | |
if (process.execPath.indexOf(tempDirectory) >= 0) reasons.push('running from Temp directory'); | |
if (reasons.length > 0) { | |
logger.info('UpdaterEpics: Updates disabled because', { reasons }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment