remove beta flag actions from UI config build (#1617)

* remove beta flag

Co-authored-by: Aiden McClelland <me@drbonez.dev>
This commit is contained in:
Lucy C
2022-07-05 13:49:53 -06:00
committed by GitHub
parent 36e0ba0f06
commit 17ef97c375
4 changed files with 1 additions and 12 deletions

View File

@@ -38,7 +38,6 @@ path = "src/bin/embassy-cli.rs"
[features]
avahi = ["avahi-sys"]
beta = []
default = ["avahi", "sound", "metal", "js_engine"]
dev = []
metal = []

View File

@@ -20,9 +20,6 @@ FLAGS=""
if [[ "$ENVIRONMENT" =~ (^|-)unstable($|-) ]]; then
FLAGS="unstable,$FLAGS"
fi
if [[ "$ENVIRONMENT" =~ (^|-)beta($|-) ]]; then
FLAGS="beta,$FLAGS"
fi
if [[ "$ENVIRONMENT" =~ (^|-)dev($|-) ]]; then
FLAGS="dev,$FLAGS"
fi

View File

@@ -1,7 +1,4 @@
#[cfg(not(feature = "beta"))]
pub const DEFAULT_MARKETPLACE: &str = "https://marketplace.start9.com";
#[cfg(feature = "beta")]
pub const DEFAULT_MARKETPLACE: &str = "https://beta-registry-0-3.start9labs.com";
pub const BUFFER_SIZE: usize = 1024;
pub const HOST_IP: [u8; 4] = [172, 18, 0, 1];

View File

@@ -12,9 +12,5 @@ const origConfig = require('./config.json')
const registries = require('./registries.json')
origConfig['gitHash'] = gitHash
if (/(^|-)beta($|-)/.test(env['ENVIRONMENT'] || '')) {
origConfig.ui['marketplace'] = registries.beta
} else {
origConfig.ui['marketplace'] = registries.prod
}
origConfig.ui['marketplace'] = registries.prod
fs.writeFileSync('./config.json', JSON.stringify(origConfig, null, 2))