1
1
/* eslint-disable */
2
- const PRODUCT_NAME = 'Firefly'
3
- const NETWORK = 'iota '
2
+ const PRODUCT_NAME = 'Firefly Shimmer '
3
+ const NETWORK = 'shimmer '
4
4
5
5
const STAGE = process . env . STAGE || 'alpha'
6
6
const APP_ID = getAppId ( )
7
7
const APP_PROTOCOL = getAppProtocol ( )
8
8
const CHANNEL_NAME = getChannelName ( )
9
9
const APP_ARTIFACT = getAppArtifact ( )
10
- const appNameBase = STAGE === 'prod' ? PRODUCT_NAME : `${ PRODUCT_NAME } ${ STAGE . replace ( / ^ \w / , ( c ) => c . toUpperCase ( ) ) } `
10
+ const appNameBase =
11
+ STAGE === 'prod' ? PRODUCT_NAME : `${ PRODUCT_NAME } - ${ STAGE . replace ( / ^ \w / , ( c ) => c . toUpperCase ( ) ) } `
11
12
12
13
function getAppArtifact ( ) {
13
14
return `firefly-${ NETWORK } -desktop-\${version}.\${ext}`
@@ -22,7 +23,7 @@ function getKeychainServiceName(isPackaged) {
22
23
if ( isPackaged ) {
23
24
return appNameBase
24
25
} else {
25
- return `${ PRODUCT_NAME } — Dev`
26
+ return `Firefly — Dev`
26
27
}
27
28
}
28
29
@@ -42,25 +43,34 @@ function getAppName(isPackaged = true) {
42
43
/**
43
44
* If stage = 'prod' -> 'iota'
44
45
* If stage = 'alpha' -> 'iota-alpha'
46
+ * If network = 'iota' -> 'iota',
47
+ * If network = 'shimmer' -> 'firefly'
45
48
*/
46
49
function getAppProtocol ( ) {
47
- return STAGE === 'prod' ? 'iota ' : `iota -${ STAGE . toLowerCase ( ) } `
50
+ return STAGE === 'prod' ? 'firefly ' : `firefly -${ STAGE . toLowerCase ( ) } `
48
51
}
49
52
50
53
/**
51
- * If stage = 'prod' -> 'org.iota.firefly'
52
- * If stage = 'alpha' -> 'org.iota.firefly.alpha'
54
+ * If stage = 'prod' -> 'org.iota.firefly-shimmer '
55
+ * If stage = 'alpha' -> 'org.iota.firefly-shimmer .alpha'
53
56
*/
54
57
function getAppId ( ) {
55
- const defaultAppId = 'org.iota.firefly'
58
+ const defaultAppId = 'org.iota.firefly-shimmer '
56
59
if ( STAGE === 'prod' ) {
57
60
return defaultAppId
58
61
}
59
62
return `${ defaultAppId } .${ STAGE } `
60
63
}
61
64
62
65
function getChannelName ( ) {
63
- return 'latest'
66
+ switch ( STAGE ) {
67
+ case 'alpha' :
68
+ return 'shimmer-alpha'
69
+ case 'beta' :
70
+ return 'shimmer-beta'
71
+ default :
72
+ return 'shimmer'
73
+ }
64
74
}
65
75
66
76
module . exports = {
0 commit comments