Google Cloud Storage
將您的 Electron 應用程式成品發佈到 Google Cloud Storage 儲存貯體。
此發佈者在 Electron Forge v7.1.0 中新增。
Google Cloud Storage 目標會將您的所有成品發佈到Google Cloud Storage 儲存貯體。
安裝
用法
若要使用 @electron-forge/publisher-gcs
,請將其新增至您的Forge 組態設定中的 publishers
陣列
forge.config.js
其他組態選項記錄在PublisherGCSConfig
中。
若要將選項傳遞至 Google Cloud Storage SDK 的Storage 建構函式,請使用 config.storageOptions
參數。
輸出位置
執行時,發佈者將在以下索引鍵下發佈到您的 GCS 儲存貯體
如果您在同一個平台上使用相同的版本執行兩次發佈,則您的舊成品可能會在 Storage 中被覆寫。您有責任確保不會覆寫自己的版本。
驗證
在底層,Google Cloud Storage 發佈者使用 @google-cloud/storage
SDK 及其相關的驗證選項。
我們建議遵循Google 的用戶端程式庫驗證文件來設定驗證。
上次更新時間