@@ -7,11 +7,7 @@ const root = path.resolve(__dirname, "../..")
77const replacements = [
88 {
99 files : [ "ci/build/nfpm.yaml" ] ,
10- from : [
11- / v e n d o r : " C o d e r " / g,
12- / h o m e p a g e : " h t t p s : \/ \/ g i t h u b .c o m \/ c o d e r \/ c o d e - s e r v e r " / g,
13- / m a i n t a i n e r : " .* " / g,
14- ] ,
10+ from : [ / v e n d o r : " C o d e r " / g, / h o m e p a g e : " h t t p s : \/ \/ g i t h u b .c o m \/ c o d e r \/ c o d e - s e r v e r " / g, / m a i n t a i n e r : " .* " / g] ,
1511 to : [
1612 `vendor: "${ branding . companyName } "` ,
1713 `homepage: "https://${ branding . companyDomain } "` ,
@@ -51,9 +47,7 @@ const replacements = [
5147 } ,
5248 {
5349 files : [ "src/node/routes/index.ts" ] ,
54- from : [
55- / n e w U p d a t e P r o v i d e r \( " h t t p s : \/ \/ a p i .g i t h u b .c o m \/ r e p o s \/ c o d e r \/ c o d e - s e r v e r \/ r e l e a s e s \/ l a t e s t " , s e t t i n g s \) / g,
56- ] ,
50+ from : [ / n e w U p d a t e P r o v i d e r \( " h t t p s : \/ \/ a p i .g i t h u b .c o m \/ r e p o s \/ c o d e r \/ c o d e - s e r v e r \/ r e l e a s e s \/ l a t e s t " , s e t t i n g s \) / g] ,
5751 to : [
5852 `new UpdateProvider("https://api.github.com/repos/${ branding . companyName } /${ branding . productName } /releases/latest", settings)` ,
5953 ] ,
@@ -69,10 +63,7 @@ const assetReplacements = [
6963]
7064
7165// Directories that might contain prebuilt release artifacts we need to patch in-place.
72- const releaseDirs = [
73- path . join ( root , "release" ) ,
74- path . join ( root , "release-standalone" ) ,
75- ]
66+ const releaseDirs = [ path . join ( root , "release" ) , path . join ( root , "release-standalone" ) ]
7667
7768// Helper to safely patch a JSON file by reading, merging, and writing.
7869function patchJson ( file , mutateFn ) {
@@ -108,9 +99,7 @@ function applyBrandingToReleaseArtifacts() {
10899 patchJson ( productJsonPath , ( json ) => {
109100 json . shortName = branding . productName
110101 json . longName = branding . productName
111- json . applicationName = branding . productName
112- . toLowerCase ( )
113- . replace ( / [ ^ a - z 0 - 9 - ] / g, "-" )
102+ json . applicationName = branding . productName . toLowerCase ( ) . replace ( / [ ^ a - z 0 - 9 - ] / g, "-" )
114103 json . dataFolderName = `${ branding . productName } -data`
115104 json . urlProtocol = branding . productName . toLowerCase ( )
116105 json . reportIssueUrl = `https://${ branding . companyDomain } /support`
@@ -145,4 +134,4 @@ function applyReplacements() {
145134 console . log ( "Branding applied successfully." )
146135}
147136
148- applyReplacements ( )
137+ applyReplacements ( )
0 commit comments