33//
44// SPDX-License-Identifier: CC0-1.0
55
6- const path = require ( ' path' ) ;
7- const rimraf = require ( ' rimraf' ) ;
8- const packageJSON = require ( ' ./package.json' ) ;
6+ const path = require ( " path" ) ;
7+ const rimraf = require ( " rimraf" ) ;
8+ const packageJSON = require ( " ./package.json" ) ;
99
1010const copyrightYear = new Date ( ) . getFullYear ( ) ;
11- const AUTHOR = ' The Scuttlebutt Consortium' ;
12- const NAME_HUMAN = 'Patchwork' ;
13- const NAME_COMPUTER = 'Patchwork' ;
11+ const AUTHOR = " The Scuttlebutt Consortium" ;
12+ const NAME_HUMAN = "Poncho Wonky" ;
13+ const NAME_COMPUTER = "ponchowonky" ;
1414
1515module . exports = {
1616 // Metadata ------------------------------------------------------------------
17- appId : ' org.ssbc.patchwork' ,
17+ appId : " org.ssbc.ponchowonky" ,
1818 productName : NAME_HUMAN ,
1919 copyright : `${ copyrightYear } ${ AUTHOR } ` ,
2020 buildVersion : packageJSON . version ,
2121 extraMetadata : {
2222 name : NAME_COMPUTER ,
2323 version : packageJSON . version ,
24- description : ' A social network for the rest of us' ,
24+ description : " A social network for the rest of us" ,
2525 author : AUTHOR ,
26- homepage : ' https://scuttlebutt.nz' ,
27- license : ' AGPL-3.0' ,
28- repository : ' https://github.com/soapdog/patchwork/' ,
26+ homepage : " https://scuttlebutt.nz" ,
27+ license : " AGPL-3.0" ,
28+ repository : " https://github.com/soapdog/patchwork/" ,
2929 } ,
30- protocols : [ { name : ' ssb' , schemes : [ ' ssb' ] } ] ,
30+ protocols : [ { name : " ssb" , schemes : [ " ssb" ] } ] ,
3131
3232 // Files section
3333 files : [
34- ' !*.p12' ,
35- ' !*.sh' ,
36- ' !*.lua'
34+ " !*.p12" ,
35+ " !*.sh" ,
36+ " !*.lua" ,
3737 ] ,
3838
3939 // Electron-builder options --------------------------------------------------
@@ -44,31 +44,30 @@ module.exports = {
4444 // All things files and directories ------------------------------------------
4545 directories : {
4646 app : __dirname ,
47- buildResources : path . join ( __dirname , ' build' ) ,
48- output : path . join ( __dirname , ' dist' ) ,
47+ buildResources : path . join ( __dirname , " build" ) ,
48+ output : path . join ( __dirname , " dist" ) ,
4949 } ,
5050
5151 // Linux-specific configurations ---------------------------------------------
5252 linux : {
53- icon : path . join ( __dirname , ' build' , ' 512x512.png' ) ,
53+ icon : path . join ( __dirname , " build" , " 512x512.png" ) ,
5454 target : [
55- { target : ' deb' , arch : [ ' x64' , ' arm64' ] } ,
56- { target : ' tar.gz' , arch : [ ' x64' , ' arm64' ] } ,
57- { target : ' AppImage' , arch : [ ' x64' , ' arm64' ] } ,
55+ { target : " deb" , arch : [ " x64" , " arm64" ] } ,
56+ { target : " tar.gz" , arch : [ " x64" , " arm64" ] } ,
57+ { target : " AppImage" , arch : [ " x64" , " arm64" ] } ,
5858 ] ,
59- category : ' Network' ,
59+ category : " Network" ,
6060 maintainer : "André Alves Garzia <andre@andregarzia.com>" ,
6161 } ,
6262
6363 deb : {
64- packageCategory : ' net' ,
65- priority : ' optional' ,
64+ packageCategory : " net" ,
65+ priority : " optional" ,
6666 depends : [
67- 'libnotify4' ,
68- 'libxtst6' ,
69- 'libnss3' ,
70- 'libc6 >= 2.28' ,
71-
67+ "libnotify4" ,
68+ "libxtst6" ,
69+ "libnss3" ,
70+ "libc6 >= 2.28" ,
7271 // Disabled to support KDE:
7372 // 'gconf2',
7473 // 'gconf-service',
@@ -79,43 +78,41 @@ module.exports = {
7978 } ,
8079
8180 appImage : {
82- artifactName : ' ${name}-${version}-linux-${arch}.${ext}' ,
81+ artifactName : " ${name}-${version}-linux-${arch}.${ext}" ,
8382 } ,
8483
8584 // Mac-specific configurations -----------------------------------------------
8685 mac : {
87- icon : path . join ( __dirname , ' build' , ' 512x512.png' ) ,
88- category : ' public.app-category.social-networking' ,
86+ icon : path . join ( __dirname , " build" , " 512x512.png" ) ,
87+ category : " public.app-category.social-networking" ,
8988 darkModeSupport : true ,
90- target : [ { target : ' dmg' , arch : ' x64' } , { target : ' dmg' , arch : ' arm64' } ] ,
89+ target : [ { target : " dmg" , arch : " x64" } , { target : " dmg" , arch : " arm64" } ] ,
9190 hardenedRuntime : true ,
92- type : ' distribution' ,
91+ type : " distribution" ,
9392 entitlements : "build/entitlements.mac.plist" ,
9493 entitlementsInherit : "build/entitlements.mac.plist" ,
95- x64ArchFiles : ' **/*.node'
94+ x64ArchFiles : " **/*.node" ,
9695 } ,
9796
9897 dmg : {
99- icon : path . join ( __dirname , ' build' , ' 512x512.png' ) ,
98+ icon : path . join ( __dirname , " build" , " 512x512.png" ) ,
10099 // background: path.join(__dirname, 'build', 'dmg-background.png'),
101100 } ,
102101
103102 // Windows-specific configurations -------------------------------------------
104103
105-
106104 nsis : {
107- artifactName : ' ${name}-${version}-windows-${arch}-nsis-installer.${ext}' ,
105+ artifactName : " ${name}-${version}-windows-${arch}-nsis-installer.${ext}" ,
108106 oneClick : false ,
109107 perMachine : false ,
110108 } ,
111109
112-
113110 // Publish options -----------------------------------------------------------
114111 publish : {
115- provider : ' github' ,
116- protocol : ' https' ,
117- owner : ' soapdog' ,
118- repo : ' patchwork' ,
119- releaseType : ' release' ,
112+ provider : " github" ,
113+ protocol : " https" ,
114+ owner : " soapdog" ,
115+ repo : " patchwork" ,
116+ releaseType : " release" ,
120117 } ,
121118} ;
0 commit comments