Skip to content

Instantly share code, notes, and snippets.

@rickheil
Created February 5, 2018 21:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickheil/41eb811b7530be5d09a0024a72f43763 to your computer and use it in GitHub Desktop.
Save rickheil/41eb811b7530be5d09a0024a72f43763 to your computer and use it in GitHub Desktop.
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