Skip to content

Commit 4b8c73d

Browse files
committed
build: add beta tag to prod builds
1 parent 7b69a74 commit 4b8c73d

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

src-build/ci-createDistReleaseConfig.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,11 @@ function _removeSuffixesFromName(name) {
2727

2828
function _getProductName(name, stage) {
2929
name = _removeSuffixesFromName(name);
30-
if(stage === 'production') {
31-
return name; // Phoenix Code
32-
}
3330
if(!PRODUCT_NAME_SUFFIX_FOR_STAGE[stage]) {
3431
throw new Error(`Cannot build Phoenix for unknown environment ${stage}`);
3532
}
36-
// return `Phoenix code Pre-release` or `Phoenix code Experimental Build`
37-
return `${name} ${PRODUCT_NAME_SUFFIX_FOR_STAGE[stage]}`;
33+
// return `Phoenix code Pre-release` or `Phoenix code Experimental Build` or `Phoenix code <beta>`
34+
return `${name} ${PRODUCT_NAME_SUFFIX_FOR_STAGE[stage]}`.trim();
3835
}
3936

4037
async function ciCreateDistReleaseConfig() {

src-build/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export const PRODUCT_NAME_SUFFIX_FOR_STAGE = {
33
// and brackets.config.staging.json. The product name suffix corresponding to each stage are values.
44
dev : "Experimental Build",
55
stage: "Pre-release",
6-
production: "" // has no suffix
6+
production: "Beta" // Change to empty if we are out of beta/alpha/rc . Prod has no suffix
77
};
88

99
export const BUNDLE_IDENTIFIER_FOR_STAGE = {

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)