build: setup tooling for publish to gcs

This commit is contained in:
talksik
2026-03-19 18:12:14 -07:00
parent 2915a30fe0
commit a1b1a46875
4 changed files with 381 additions and 14 deletions
+20 -2
View File
@@ -21,10 +21,28 @@ const config: ForgeConfig = {
keychainProfile: 'default',
}
},
publishers: [
{
name: '@electron-forge/publisher-gcs',
config: {
storageOptions: {
projectId: 'flowy-prod-440017'
},
bucket: 'flowy-releases',
folder: 'llink',
// NOTE: commented out because we do not want to apply per object ACL which conflicts with uniform bucket-level access that's already public
// public: true
}
}
],
rebuildConfig: {},
makers: [
new MakerSquirrel({}),
new MakerZIP({}, ['darwin']),
new MakerSquirrel((arch) => ({
remoteReleases: `https://storage.googleapis.com/flowy-releases/llink/win32/${arch}`
})),
new MakerZIP((arch) => ({
macUpdateManifestBaseUrl: `https://storage.googleapis.com/flowy-releases/llink/darwin/${arch}`
}), ['darwin']),
new MakerRpm({}),
new MakerDeb({}),
],