fix: remove outdated RELEASES_REPOSITORY (#1119)

* remove releases repository

* make github explicit

* remove ci docs

* generic = raw url download
This commit is contained in:
Daniel LaCosse 2022-07-01 16:51:27 -05:00 committed by GitHub
parent 7ca6d366d3
commit 97cabe60a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 14 deletions

View file

@ -63,11 +63,3 @@ To enable error reporting through [Sentry](https://sentry.io/) for local builds,
export SENTRY_DSN=[Sentry development API key]
npm run action server_manager/electron_app/start
```
## CI Environment Variables
For your CI to run smoothly, you'll need the following in your ENV:
- `SENTRY_DSN` - [url required](https://docs.sentry.io/product/sentry-basics/dsn-explainer/) to enable sentry integration. Same across all platforms.
- `RELEASES_REPOSITORY` - the username and repository name of the repository you're pushing releases to. In our case, `Jigsaw-Code/outline-releases`
- `RELEASES_DEPLOY_KEY` - an ssh secret key for the matching releases repository public deploy key - [how to set this up](https://docs.github.com/en/developers/overview/managing-deploy-keys#setup-2)

View file

@ -33,24 +33,23 @@ export async function getElectronBuildFlags(platform, buildMode) {
break;
case 'windows':
buildFlags = [
'--win', '--ia32',
'--win',
'--ia32',
'--config.win.icon=icons/win/icon.ico',
'--config.win.sign=src/server_manager/electron_app/windows/electron_builder_signing_plugin.cjs',
...buildFlags];
...buildFlags,
];
break;
case 'macos':
buildFlags = ['--mac', '--config.mac.icon=icons/mac/icon.icns', ...buildFlags];
}
if (buildMode === 'release') {
// Publishing is disabled, updates are pulled from AWS. We use the generic provider instead of the S3
// provider since the S3 provider uses "virtual-hosted style" URLs (my-bucket.s3.amazonaws.com)
// which can be blocked by DNS or SNI without taking down other buckets.
buildFlags = [
...buildFlags,
'--config.generateUpdatesFilesForAllChannels=true',
'--config.publish.provider=generic',
`--config.publish.url=${process.env.RELEASES_REPOSITORY}`,
'--config.publish.url=https://raw.githubusercontent.com/Jigsaw-Code/outline-releases/master/manager/',
];
}