mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
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:
@@ -38,7 +38,6 @@ path = "src/bin/embassy-cli.rs"
|
||||
|
||||
[features]
|
||||
avahi = ["avahi-sys"]
|
||||
beta = []
|
||||
default = ["avahi", "sound", "metal", "js_engine"]
|
||||
dev = []
|
||||
metal = []
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user