You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bucket name: Enter a unique bucket name in kebab case (e.g., my-app-name-distribution)
248
+
Object Ownership: Select ACLs enabled
248
249
Block Public Access settings for this bucket: Uncheck "Block all public access"
249
250
```
251
+
*Important Note:*
252
+
Ensure that **Object Ownership** is set to **"ACLs enabled"** because Electron Builder requires this setting to successfully upload files. Without it, you will encounter the following error:
- In the "Bucket policy" section, press the "Edit" button and paste the following policy (replace "<bucket-name>" with the bucket name you just created):
255
-
```json
256
-
{
257
-
"Version": "2008-10-17",
258
-
"Statement": [
259
-
{
260
-
"Sid": "AllowPublicRead",
261
-
"Effect": "Allow",
262
-
"Principal": {
263
-
"AWS": "*"
264
-
},
265
-
"Action": "s3:GetObject",
266
-
"Resource": "arn:aws:s3:::<bucket-name>/*"
267
-
}
268
-
]
269
-
}
270
-
```
271
-
If you don't have them, then get AWS access key and secret key.
259
+
260
+
5. If you don't have an AWS access key and secret key, get them.
272
261
273
262
**3. Configure GitHub Secrets**
274
263
In your GitHub Repository, navigate to Settings > Secrets and variables > Actions and add the following secrets:
275
264
```
276
265
APPLE_ID # Your Apple ID email
277
266
APPLE_APP_SPECIFIC_PASSWORD # App Specific password
278
267
APPLE_TEAM_ID # Your Team ID
279
-
CSC_BASE64_ENCODED # Your Base64 encoded certificate created earlier
268
+
CSC_LINK # Your Base64 encoded certificate created earlier
280
269
CSC_KEY_PASSWORD # Certificate password
281
270
AWS_ACCESS_KEY_ID # AWS access key
282
271
AWS_SECRET_ACCESS_KEY # AWS secret key
283
272
```
284
273
285
-
**4. Set up GitHub Actions**
274
+
**4. Configure Electron Builder**
275
+
1. In your "package.json" file, add the following to the Electron "build" configuration:
276
+
```json
277
+
"build": {
278
+
"publish": {
279
+
"provider": "s3",
280
+
"bucket": "your-s3-bucket-name"
281
+
}
282
+
}
283
+
```
284
+
Replace "your-s3-bucket-name" with the name of your S3 bucket.
285
+
286
+
2. Add a new script called "package-publish" to the "scripts" section of your "package.json" file:
0 commit comments