-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wrong Provisioning Profile and add directories to desktop upload #13129
Changes from 1 commit
a08eebe
d51f934
d8841f0
0eebd80
c9332f5
4f0d046
b55f233
0e9a16e
47892bf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,22 @@ | ||
const {version} = require('../package.json'); | ||
|
||
const isPublishing = process.argv.includes('--publish'); | ||
const pullRequestNumber = process.env.PULL_REQUEST_NUMBER; | ||
|
||
const s3Bucket = { | ||
production: 'expensify-cash', | ||
staging: 'staging-expensify-cash', | ||
internal: 'ad-hoc-expensify-cash', | ||
}; | ||
|
||
const s3Path = { | ||
production: '/', | ||
staging: '/', | ||
internal: process.env.PULL_REQUEST_NUMBER | ||
? `/desktop/${pullRequestNumber}/` | ||
: '/', | ||
}; | ||
|
||
const macIcon = { | ||
production: './desktop/icon.png', | ||
staging: './desktop/icon-stg.png', | ||
|
@@ -50,6 +59,7 @@ module.exports = { | |
? s3Bucket[process.env.ELECTRON_ENV] | ||
: 'ad-hoc-expensify-cash', | ||
channel: 'latest', | ||
path: isCorrectElectronEnv ? s3Path[process.env.ELECTRON_ENV] : '/', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if we should just fail the Electron build early if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, you may be right, if there isn't any |
||
}, | ||
], | ||
afterSign: isPublishing ? './desktop/notarize.js' : undefined, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand we're still in a testing phase, but why did you remove the web build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turned out that it is not so simple to host multiple react apps in on S3 bucket. It seems that we may configure buckets to host a couple of apps with some predefined urls, but we have to dive deeper to find a way to do it dynamically (as we want to keep it in a folder with PR's number). Uploading the web app is not a problem, hosting it unfortunately might be.