mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +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]
|
[features]
|
||||||
avahi = ["avahi-sys"]
|
avahi = ["avahi-sys"]
|
||||||
beta = []
|
|
||||||
default = ["avahi", "sound", "metal", "js_engine"]
|
default = ["avahi", "sound", "metal", "js_engine"]
|
||||||
dev = []
|
dev = []
|
||||||
metal = []
|
metal = []
|
||||||
|
|||||||
@@ -20,9 +20,6 @@ FLAGS=""
|
|||||||
if [[ "$ENVIRONMENT" =~ (^|-)unstable($|-) ]]; then
|
if [[ "$ENVIRONMENT" =~ (^|-)unstable($|-) ]]; then
|
||||||
FLAGS="unstable,$FLAGS"
|
FLAGS="unstable,$FLAGS"
|
||||||
fi
|
fi
|
||||||
if [[ "$ENVIRONMENT" =~ (^|-)beta($|-) ]]; then
|
|
||||||
FLAGS="beta,$FLAGS"
|
|
||||||
fi
|
|
||||||
if [[ "$ENVIRONMENT" =~ (^|-)dev($|-) ]]; then
|
if [[ "$ENVIRONMENT" =~ (^|-)dev($|-) ]]; then
|
||||||
FLAGS="dev,$FLAGS"
|
FLAGS="dev,$FLAGS"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
#[cfg(not(feature = "beta"))]
|
|
||||||
pub const DEFAULT_MARKETPLACE: &str = "https://marketplace.start9.com";
|
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 BUFFER_SIZE: usize = 1024;
|
||||||
pub const HOST_IP: [u8; 4] = [172, 18, 0, 1];
|
pub const HOST_IP: [u8; 4] = [172, 18, 0, 1];
|
||||||
|
|
||||||
|
|||||||
@@ -12,9 +12,5 @@ const origConfig = require('./config.json')
|
|||||||
const registries = require('./registries.json')
|
const registries = require('./registries.json')
|
||||||
|
|
||||||
origConfig['gitHash'] = gitHash
|
origConfig['gitHash'] = gitHash
|
||||||
if (/(^|-)beta($|-)/.test(env['ENVIRONMENT'] || '')) {
|
origConfig.ui['marketplace'] = registries.prod
|
||||||
origConfig.ui['marketplace'] = registries.beta
|
|
||||||
} else {
|
|
||||||
origConfig.ui['marketplace'] = registries.prod
|
|
||||||
}
|
|
||||||
fs.writeFileSync('./config.json', JSON.stringify(origConfig, null, 2))
|
fs.writeFileSync('./config.json', JSON.stringify(origConfig, null, 2))
|
||||||
|
|||||||
Reference in New Issue
Block a user