scheme.json 234 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "additionalProperties": false,
  4. "definitions": {
  5. "AppImageOptions": {
  6. "additionalProperties": false,
  7. "properties": {
  8. "artifactName": {
  9. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  10. "type": [
  11. "null",
  12. "string"
  13. ]
  14. },
  15. "category": {
  16. "description": "The [application category](https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry).",
  17. "type": [
  18. "null",
  19. "string"
  20. ]
  21. },
  22. "description": {
  23. "description": "As [description](/configuration/configuration#Metadata-description) from application package.json, but allows you to specify different for Linux.",
  24. "type": [
  25. "null",
  26. "string"
  27. ]
  28. },
  29. "desktop": {
  30. "description": "The [Desktop file](https://developer.gnome.org/documentation/guidelines/maintainer/integrating.html#desktop-files) entries (name to value)."
  31. },
  32. "executableArgs": {
  33. "anyOf": [
  34. {
  35. "items": {
  36. "type": "string"
  37. },
  38. "type": "array"
  39. },
  40. {
  41. "type": "null"
  42. }
  43. ],
  44. "description": "The executable parameters. Pass to executableName"
  45. },
  46. "license": {
  47. "description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants). Only plain text is supported.",
  48. "type": [
  49. "null",
  50. "string"
  51. ]
  52. },
  53. "mimeTypes": {
  54. "anyOf": [
  55. {
  56. "items": {
  57. "type": "string"
  58. },
  59. "type": "array"
  60. },
  61. {
  62. "type": "null"
  63. }
  64. ],
  65. "description": "The mime types in addition to specified in the file associations. Use it if you don't want to register a new mime type, but reuse existing."
  66. },
  67. "publish": {
  68. "anyOf": [
  69. {
  70. "$ref": "#/definitions/GithubOptions"
  71. },
  72. {
  73. "$ref": "#/definitions/S3Options"
  74. },
  75. {
  76. "$ref": "#/definitions/SpacesOptions"
  77. },
  78. {
  79. "$ref": "#/definitions/GenericServerOptions"
  80. },
  81. {
  82. "$ref": "#/definitions/CustomPublishOptions"
  83. },
  84. {
  85. "$ref": "#/definitions/KeygenOptions"
  86. },
  87. {
  88. "$ref": "#/definitions/SnapStoreOptions"
  89. },
  90. {
  91. "$ref": "#/definitions/BitbucketOptions"
  92. },
  93. {
  94. "items": {
  95. "anyOf": [
  96. {
  97. "$ref": "#/definitions/GithubOptions"
  98. },
  99. {
  100. "$ref": "#/definitions/S3Options"
  101. },
  102. {
  103. "$ref": "#/definitions/SpacesOptions"
  104. },
  105. {
  106. "$ref": "#/definitions/GenericServerOptions"
  107. },
  108. {
  109. "$ref": "#/definitions/CustomPublishOptions"
  110. },
  111. {
  112. "$ref": "#/definitions/KeygenOptions"
  113. },
  114. {
  115. "$ref": "#/definitions/SnapStoreOptions"
  116. },
  117. {
  118. "$ref": "#/definitions/BitbucketOptions"
  119. },
  120. {
  121. "type": "string"
  122. }
  123. ]
  124. },
  125. "type": "array"
  126. },
  127. {
  128. "type": [
  129. "null",
  130. "string"
  131. ]
  132. }
  133. ]
  134. },
  135. "synopsis": {
  136. "description": "The [short description](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description).",
  137. "type": [
  138. "null",
  139. "string"
  140. ]
  141. }
  142. },
  143. "type": "object"
  144. },
  145. "AppXOptions": {
  146. "additionalProperties": false,
  147. "properties": {
  148. "addAutoLaunchExtension": {
  149. "description": "Whether to add auto launch extension. Defaults to `true` if [electron-winstore-auto-launch](https://github.com/felixrieseberg/electron-winstore-auto-launch) in the dependencies.",
  150. "type": "boolean"
  151. },
  152. "applicationId": {
  153. "description": "The application id. Defaults to `identityName`. Can’t start with numbers.",
  154. "type": "string"
  155. },
  156. "artifactName": {
  157. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  158. "type": [
  159. "null",
  160. "string"
  161. ]
  162. },
  163. "backgroundColor": {
  164. "default": "#464646",
  165. "description": "The background color of the app tile. See [Visual Elements](https://msdn.microsoft.com/en-us/library/windows/apps/br211471.aspx).",
  166. "type": [
  167. "null",
  168. "string"
  169. ]
  170. },
  171. "customExtensionsPath": {
  172. "description": "Relative path to custom extensions xml to be included in an `appmanifest.xml`.",
  173. "type": "string"
  174. },
  175. "displayName": {
  176. "description": "A friendly name that can be displayed to users. Corresponds to [Properties.DisplayName](https://msdn.microsoft.com/en-us/library/windows/apps/br211432.aspx).\nDefaults to the application product name.",
  177. "type": [
  178. "null",
  179. "string"
  180. ]
  181. },
  182. "electronUpdaterAware": {
  183. "default": false,
  184. "type": "boolean"
  185. },
  186. "identityName": {
  187. "description": "The name. Corresponds to [Identity.Name](https://msdn.microsoft.com/en-us/library/windows/apps/br211441.aspx). Defaults to the [application name](/configuration/configuration#Metadata-name).",
  188. "type": [
  189. "null",
  190. "string"
  191. ]
  192. },
  193. "languages": {
  194. "anyOf": [
  195. {
  196. "items": {
  197. "type": "string"
  198. },
  199. "type": "array"
  200. },
  201. {
  202. "type": [
  203. "null",
  204. "string"
  205. ]
  206. }
  207. ],
  208. "description": "The list of [supported languages](https://docs.microsoft.com/en-us/windows/uwp/globalizing/manage-language-and-region#specify-the-supported-languages-in-the-apps-manifest) that will be listed in the Windows Store.\nThe first entry (index 0) will be the default language.\nDefaults to en-US if omitted."
  209. },
  210. "makeappxArgs": {
  211. "anyOf": [
  212. {
  213. "items": {
  214. "type": "string"
  215. },
  216. "type": "array"
  217. },
  218. {
  219. "type": "null"
  220. }
  221. ]
  222. },
  223. "publish": {
  224. "anyOf": [
  225. {
  226. "$ref": "#/definitions/GithubOptions"
  227. },
  228. {
  229. "$ref": "#/definitions/S3Options"
  230. },
  231. {
  232. "$ref": "#/definitions/SpacesOptions"
  233. },
  234. {
  235. "$ref": "#/definitions/GenericServerOptions"
  236. },
  237. {
  238. "$ref": "#/definitions/CustomPublishOptions"
  239. },
  240. {
  241. "$ref": "#/definitions/KeygenOptions"
  242. },
  243. {
  244. "$ref": "#/definitions/SnapStoreOptions"
  245. },
  246. {
  247. "$ref": "#/definitions/BitbucketOptions"
  248. },
  249. {
  250. "items": {
  251. "anyOf": [
  252. {
  253. "$ref": "#/definitions/GithubOptions"
  254. },
  255. {
  256. "$ref": "#/definitions/S3Options"
  257. },
  258. {
  259. "$ref": "#/definitions/SpacesOptions"
  260. },
  261. {
  262. "$ref": "#/definitions/GenericServerOptions"
  263. },
  264. {
  265. "$ref": "#/definitions/CustomPublishOptions"
  266. },
  267. {
  268. "$ref": "#/definitions/KeygenOptions"
  269. },
  270. {
  271. "$ref": "#/definitions/SnapStoreOptions"
  272. },
  273. {
  274. "$ref": "#/definitions/BitbucketOptions"
  275. },
  276. {
  277. "type": "string"
  278. }
  279. ]
  280. },
  281. "type": "array"
  282. },
  283. {
  284. "type": [
  285. "null",
  286. "string"
  287. ]
  288. }
  289. ]
  290. },
  291. "publisher": {
  292. "description": "The Windows Store publisher. Not used if AppX is build for testing. See [AppX Package Code Signing](#appx-package-code-signing) below.",
  293. "type": [
  294. "null",
  295. "string"
  296. ]
  297. },
  298. "publisherDisplayName": {
  299. "description": "A friendly name for the publisher that can be displayed to users. Corresponds to [Properties.PublisherDisplayName](https://msdn.microsoft.com/en-us/library/windows/apps/br211460.aspx).\nDefaults to company name from the application metadata.",
  300. "type": [
  301. "null",
  302. "string"
  303. ]
  304. },
  305. "setBuildNumber": {
  306. "default": false,
  307. "description": "Whether to set build number. See https://github.com/electron-userland/electron-builder/issues/3875",
  308. "type": "boolean"
  309. },
  310. "showNameOnTiles": {
  311. "default": false,
  312. "description": "Whether to overlay the app's name on top of tile images on the Start screen. Defaults to `false`. (https://docs.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-uap-shownameontiles) in the dependencies.",
  313. "type": "boolean"
  314. }
  315. },
  316. "type": "object"
  317. },
  318. "AsarOptions": {
  319. "additionalProperties": false,
  320. "properties": {
  321. "ordering": {
  322. "type": [
  323. "null",
  324. "string"
  325. ]
  326. },
  327. "smartUnpack": {
  328. "default": true,
  329. "description": "Whether to automatically unpack executables files.",
  330. "type": "boolean"
  331. }
  332. },
  333. "type": "object"
  334. },
  335. "BitbucketOptions": {
  336. "additionalProperties": false,
  337. "description": "Bitbucket options.\nhttps://bitbucket.org/\nDefine `BITBUCKET_TOKEN` environment variable.\n\nFor converting an app password to a usable token, you can utilize this\n```typescript\nconvertAppPassword(owner: string, appPassword: string) {\nconst base64encodedData = Buffer.from(`${owner}:${appPassword.trim()}`).toString(\"base64\")\nreturn `Basic ${base64encodedData}`\n}\n```",
  338. "properties": {
  339. "channel": {
  340. "default": "latest",
  341. "description": "The channel.",
  342. "type": [
  343. "null",
  344. "string"
  345. ]
  346. },
  347. "owner": {
  348. "description": "Repository owner",
  349. "type": "string"
  350. },
  351. "provider": {
  352. "description": "The provider. Must be `bitbucket`.",
  353. "enum": [
  354. "bitbucket"
  355. ],
  356. "type": "string"
  357. },
  358. "publishAutoUpdate": {
  359. "default": true,
  360. "description": "Whether to publish auto update info files.\n\nAuto update relies only on the first provider in the list (you can specify several publishers).\nThus, probably, there`s no need to upload the metadata files for the other configured providers. But by default will be uploaded.",
  361. "type": "boolean"
  362. },
  363. "publisherName": {
  364. "anyOf": [
  365. {
  366. "items": {
  367. "type": "string"
  368. },
  369. "type": "array"
  370. },
  371. {
  372. "type": "null"
  373. }
  374. ]
  375. },
  376. "requestHeaders": {
  377. "$ref": "#/definitions/OutgoingHttpHeaders",
  378. "description": "Any custom request headers"
  379. },
  380. "slug": {
  381. "description": "Repository slug/name",
  382. "type": "string"
  383. },
  384. "timeout": {
  385. "default": 120000,
  386. "description": "Request timeout in milliseconds. (Default is 2 minutes; O is ignored)",
  387. "type": [
  388. "null",
  389. "number"
  390. ]
  391. },
  392. "token": {
  393. "description": "The app password (account>settings>app-passwords) to support auto-update from private bitbucket repositories.",
  394. "type": [
  395. "null",
  396. "string"
  397. ]
  398. },
  399. "updaterCacheDirName": {
  400. "type": [
  401. "null",
  402. "string"
  403. ]
  404. },
  405. "username": {
  406. "description": "The user name to support auto-update from private bitbucket repositories.",
  407. "type": [
  408. "null",
  409. "string"
  410. ]
  411. }
  412. },
  413. "required": [
  414. "owner",
  415. "provider",
  416. "slug"
  417. ],
  418. "type": "object"
  419. },
  420. "CustomNsisBinary": {
  421. "additionalProperties": false,
  422. "properties": {
  423. "checksum": {
  424. "default": "VKMiizYdmNdJOWpRGz4trl4lD++BvYP2irAXpMilheUP0pc93iKlWAoP843Vlraj8YG19CVn0j+dCo/hURz9+Q==",
  425. "type": [
  426. "null",
  427. "string"
  428. ]
  429. },
  430. "debugLogging": {
  431. "description": "Whether or not to enable NSIS logging for debugging.\nNote: Requires a debug-enabled NSIS build.\nelectron-builder's included `makensis` does not natively support debug-enabled NSIS installers currently, you must supply your own via `customNsisBinary?: CustomNsisBinary`\nIn your custom nsis scripts, you can leverage this functionality via `LogSet` and `LogText`",
  432. "type": [
  433. "null",
  434. "boolean"
  435. ]
  436. },
  437. "url": {
  438. "default": "https://github.com/electron-userland/electron-builder-binaries/releases/download",
  439. "type": [
  440. "null",
  441. "string"
  442. ]
  443. },
  444. "version": {
  445. "default": "3.0.4.1",
  446. "type": [
  447. "null",
  448. "string"
  449. ]
  450. }
  451. },
  452. "required": [
  453. "url"
  454. ],
  455. "type": "object"
  456. },
  457. "CustomPublishOptions": {
  458. "additionalProperties": {},
  459. "properties": {
  460. "provider": {
  461. "description": "The provider. Must be `custom`.",
  462. "enum": [
  463. "custom"
  464. ],
  465. "type": "string"
  466. },
  467. "publishAutoUpdate": {
  468. "default": true,
  469. "description": "Whether to publish auto update info files.\n\nAuto update relies only on the first provider in the list (you can specify several publishers).\nThus, probably, there`s no need to upload the metadata files for the other configured providers. But by default will be uploaded.",
  470. "type": "boolean"
  471. },
  472. "publisherName": {
  473. "anyOf": [
  474. {
  475. "items": {
  476. "type": "string"
  477. },
  478. "type": "array"
  479. },
  480. {
  481. "type": "null"
  482. }
  483. ]
  484. },
  485. "requestHeaders": {
  486. "$ref": "#/definitions/OutgoingHttpHeaders",
  487. "description": "Any custom request headers"
  488. },
  489. "timeout": {
  490. "default": 120000,
  491. "description": "Request timeout in milliseconds. (Default is 2 minutes; O is ignored)",
  492. "type": [
  493. "null",
  494. "number"
  495. ]
  496. },
  497. "updateProvider": {
  498. "description": "The Provider to provide UpdateInfo regarding available updates. Required\nto use custom providers with electron-updater.",
  499. "typeof": "function"
  500. },
  501. "updaterCacheDirName": {
  502. "type": [
  503. "null",
  504. "string"
  505. ]
  506. }
  507. },
  508. "required": [
  509. "provider"
  510. ],
  511. "type": "object"
  512. },
  513. "DebOptions": {
  514. "additionalProperties": false,
  515. "properties": {
  516. "afterInstall": {
  517. "type": [
  518. "null",
  519. "string"
  520. ]
  521. },
  522. "afterRemove": {
  523. "type": [
  524. "null",
  525. "string"
  526. ]
  527. },
  528. "artifactName": {
  529. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  530. "type": [
  531. "null",
  532. "string"
  533. ]
  534. },
  535. "category": {
  536. "description": "The [application category](https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry).",
  537. "type": [
  538. "null",
  539. "string"
  540. ]
  541. },
  542. "compression": {
  543. "anyOf": [
  544. {
  545. "enum": [
  546. "bzip2",
  547. "gz",
  548. "lzo",
  549. "xz"
  550. ],
  551. "type": "string"
  552. },
  553. {
  554. "type": "null"
  555. }
  556. ],
  557. "default": "xz",
  558. "description": "The compression type."
  559. },
  560. "depends": {
  561. "anyOf": [
  562. {
  563. "items": {
  564. "type": "string"
  565. },
  566. "type": "array"
  567. },
  568. {
  569. "type": "null"
  570. }
  571. ],
  572. "description": "Package dependencies. Defaults to `[\"gconf2\", \"gconf-service\", \"libnotify4\", \"libappindicator1\", \"libxtst6\", \"libnss3\"]`.\nIf need to support Debian, `libappindicator1` should be removed, it is [deprecated in Debian](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895037).\nIf need to support KDE, `gconf2` and `gconf-service` should be removed as it's no longer used by GNOME](https://packages.debian.org/bullseye/gconf2)."
  573. },
  574. "description": {
  575. "description": "As [description](/configuration/configuration#Metadata-description) from application package.json, but allows you to specify different for Linux.",
  576. "type": [
  577. "null",
  578. "string"
  579. ]
  580. },
  581. "desktop": {
  582. "description": "The [Desktop file](https://developer.gnome.org/documentation/guidelines/maintainer/integrating.html#desktop-files) entries (name to value)."
  583. },
  584. "executableArgs": {
  585. "anyOf": [
  586. {
  587. "items": {
  588. "type": "string"
  589. },
  590. "type": "array"
  591. },
  592. {
  593. "type": "null"
  594. }
  595. ],
  596. "description": "The executable parameters. Pass to executableName"
  597. },
  598. "fpm": {
  599. "anyOf": [
  600. {
  601. "items": {
  602. "type": "string"
  603. },
  604. "type": "array"
  605. },
  606. {
  607. "type": "null"
  608. }
  609. ],
  610. "description": "*Advanced only* The [fpm](https://fpm.readthedocs.io/en/latest/cli-reference.html) options.\n\nExample: `[\"--before-install=build/deb-preinstall.sh\", \"--after-upgrade=build/deb-postinstall.sh\"]`"
  611. },
  612. "icon": {
  613. "type": "string"
  614. },
  615. "maintainer": {
  616. "type": [
  617. "null",
  618. "string"
  619. ]
  620. },
  621. "mimeTypes": {
  622. "anyOf": [
  623. {
  624. "items": {
  625. "type": "string"
  626. },
  627. "type": "array"
  628. },
  629. {
  630. "type": "null"
  631. }
  632. ],
  633. "description": "The mime types in addition to specified in the file associations. Use it if you don't want to register a new mime type, but reuse existing."
  634. },
  635. "packageCategory": {
  636. "description": "The [package category](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Section).",
  637. "type": [
  638. "null",
  639. "string"
  640. ]
  641. },
  642. "packageName": {
  643. "description": "The name of the package.",
  644. "type": [
  645. "null",
  646. "string"
  647. ]
  648. },
  649. "priority": {
  650. "description": "The [Priority](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Priority) attribute.",
  651. "type": [
  652. "null",
  653. "string"
  654. ]
  655. },
  656. "publish": {
  657. "anyOf": [
  658. {
  659. "$ref": "#/definitions/GithubOptions"
  660. },
  661. {
  662. "$ref": "#/definitions/S3Options"
  663. },
  664. {
  665. "$ref": "#/definitions/SpacesOptions"
  666. },
  667. {
  668. "$ref": "#/definitions/GenericServerOptions"
  669. },
  670. {
  671. "$ref": "#/definitions/CustomPublishOptions"
  672. },
  673. {
  674. "$ref": "#/definitions/KeygenOptions"
  675. },
  676. {
  677. "$ref": "#/definitions/SnapStoreOptions"
  678. },
  679. {
  680. "$ref": "#/definitions/BitbucketOptions"
  681. },
  682. {
  683. "items": {
  684. "anyOf": [
  685. {
  686. "$ref": "#/definitions/GithubOptions"
  687. },
  688. {
  689. "$ref": "#/definitions/S3Options"
  690. },
  691. {
  692. "$ref": "#/definitions/SpacesOptions"
  693. },
  694. {
  695. "$ref": "#/definitions/GenericServerOptions"
  696. },
  697. {
  698. "$ref": "#/definitions/CustomPublishOptions"
  699. },
  700. {
  701. "$ref": "#/definitions/KeygenOptions"
  702. },
  703. {
  704. "$ref": "#/definitions/SnapStoreOptions"
  705. },
  706. {
  707. "$ref": "#/definitions/BitbucketOptions"
  708. },
  709. {
  710. "type": "string"
  711. }
  712. ]
  713. },
  714. "type": "array"
  715. },
  716. {
  717. "type": [
  718. "null",
  719. "string"
  720. ]
  721. }
  722. ]
  723. },
  724. "recommends": {
  725. "anyOf": [
  726. {
  727. "items": {
  728. "type": "string"
  729. },
  730. "type": "array"
  731. },
  732. {
  733. "type": "null"
  734. }
  735. ],
  736. "description": "The [recommended package dependencies](https://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps).."
  737. },
  738. "synopsis": {
  739. "description": "The [short description](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description).",
  740. "type": [
  741. "null",
  742. "string"
  743. ]
  744. },
  745. "vendor": {
  746. "type": [
  747. "null",
  748. "string"
  749. ]
  750. }
  751. },
  752. "type": "object"
  753. },
  754. "DmgContent": {
  755. "additionalProperties": false,
  756. "properties": {
  757. "name": {
  758. "description": "The name of the file within the DMG. Defaults to basename of `path`.",
  759. "type": "string"
  760. },
  761. "path": {
  762. "description": "The path of the file within the DMG.",
  763. "type": "string"
  764. },
  765. "type": {
  766. "enum": [
  767. "dir",
  768. "file",
  769. "link"
  770. ],
  771. "type": "string"
  772. },
  773. "x": {
  774. "description": "The device-independent pixel offset from the left of the window to the **center** of the icon.",
  775. "type": "number"
  776. },
  777. "y": {
  778. "description": "The device-independent pixel offset from the top of the window to the **center** of the icon.",
  779. "type": "number"
  780. }
  781. },
  782. "required": [
  783. "x",
  784. "y"
  785. ],
  786. "type": "object"
  787. },
  788. "DmgOptions": {
  789. "additionalProperties": false,
  790. "properties": {
  791. "artifactName": {
  792. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  793. "type": [
  794. "null",
  795. "string"
  796. ]
  797. },
  798. "background": {
  799. "description": "The path to background image (default: `build/background.tiff` or `build/background.png` if exists). The resolution of this file determines the resolution of the installer window.\nIf background is not specified, use `window.size`. Default locations expected background size to be 540x380.",
  800. "type": [
  801. "null",
  802. "string"
  803. ]
  804. },
  805. "backgroundColor": {
  806. "description": "The background color (accepts css colors). Defaults to `#ffffff` (white) if no background image.",
  807. "type": [
  808. "null",
  809. "string"
  810. ]
  811. },
  812. "contents": {
  813. "description": "The content — to customize icon locations. The x and y coordinates refer to the position of the **center** of the icon (at 1x scale), and do not take the label into account.",
  814. "items": {
  815. "$ref": "#/definitions/DmgContent"
  816. },
  817. "type": "array"
  818. },
  819. "format": {
  820. "default": "UDZO",
  821. "description": "The disk image format. `ULFO` (lzfse-compressed image (OS X 10.11+ only)).",
  822. "enum": [
  823. "UDBZ",
  824. "UDCO",
  825. "UDRO",
  826. "UDRW",
  827. "UDZO",
  828. "ULFO"
  829. ],
  830. "type": "string"
  831. },
  832. "icon": {
  833. "description": "The path to DMG icon (volume icon), which will be shown when mounted, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.\nDefaults to the application icon (`build/icon.icns`).",
  834. "type": [
  835. "null",
  836. "string"
  837. ]
  838. },
  839. "iconSize": {
  840. "default": 80,
  841. "description": "The size of all the icons inside the DMG.",
  842. "type": [
  843. "null",
  844. "number"
  845. ]
  846. },
  847. "iconTextSize": {
  848. "default": 12,
  849. "description": "The size of all the icon texts inside the DMG.",
  850. "type": [
  851. "null",
  852. "number"
  853. ]
  854. },
  855. "internetEnabled": {
  856. "default": false,
  857. "description": "Whether to create internet-enabled disk image (when it is downloaded using a browser it will automatically decompress the image, put the application on the desktop, unmount and remove the disk image file).",
  858. "type": "boolean"
  859. },
  860. "publish": {
  861. "anyOf": [
  862. {
  863. "$ref": "#/definitions/GithubOptions"
  864. },
  865. {
  866. "$ref": "#/definitions/S3Options"
  867. },
  868. {
  869. "$ref": "#/definitions/SpacesOptions"
  870. },
  871. {
  872. "$ref": "#/definitions/GenericServerOptions"
  873. },
  874. {
  875. "$ref": "#/definitions/CustomPublishOptions"
  876. },
  877. {
  878. "$ref": "#/definitions/KeygenOptions"
  879. },
  880. {
  881. "$ref": "#/definitions/SnapStoreOptions"
  882. },
  883. {
  884. "$ref": "#/definitions/BitbucketOptions"
  885. },
  886. {
  887. "items": {
  888. "anyOf": [
  889. {
  890. "$ref": "#/definitions/GithubOptions"
  891. },
  892. {
  893. "$ref": "#/definitions/S3Options"
  894. },
  895. {
  896. "$ref": "#/definitions/SpacesOptions"
  897. },
  898. {
  899. "$ref": "#/definitions/GenericServerOptions"
  900. },
  901. {
  902. "$ref": "#/definitions/CustomPublishOptions"
  903. },
  904. {
  905. "$ref": "#/definitions/KeygenOptions"
  906. },
  907. {
  908. "$ref": "#/definitions/SnapStoreOptions"
  909. },
  910. {
  911. "$ref": "#/definitions/BitbucketOptions"
  912. },
  913. {
  914. "type": "string"
  915. }
  916. ]
  917. },
  918. "type": "array"
  919. },
  920. {
  921. "type": [
  922. "null",
  923. "string"
  924. ]
  925. }
  926. ]
  927. },
  928. "sign": {
  929. "default": false,
  930. "description": "Whether to sign the DMG or not. Signing is not required and will lead to unwanted errors in combination with notarization requirements.",
  931. "type": "boolean"
  932. },
  933. "title": {
  934. "default": "${productName} ${version}",
  935. "description": "The title of the produced DMG, which will be shown when mounted (volume name).\n\nMacro `${productName}`, `${version}` and `${name}` are supported.",
  936. "type": [
  937. "null",
  938. "string"
  939. ]
  940. },
  941. "window": {
  942. "$ref": "#/definitions/DmgWindow",
  943. "description": "The DMG window position and size. With y co-ordinates running from bottom to top.\n\nThe Finder makes sure that the window will be on the user’s display, so if you want your window at the top left of the display you could use `\"x\": 0, \"y\": 100000` as the x, y co-ordinates.\nIt is not to be possible to position the window relative to the [top left](https://github.com/electron-userland/electron-builder/issues/3990#issuecomment-512960957) or relative to the center of the user’s screen."
  944. },
  945. "writeUpdateInfo": {
  946. "default": true,
  947. "type": "boolean"
  948. }
  949. },
  950. "type": "object"
  951. },
  952. "DmgWindow": {
  953. "additionalProperties": false,
  954. "properties": {
  955. "height": {
  956. "description": "The height. Defaults to background image height or 380.",
  957. "type": "number"
  958. },
  959. "width": {
  960. "description": "The width. Defaults to background image width or 540.",
  961. "type": "number"
  962. },
  963. "x": {
  964. "default": 400,
  965. "description": "The X position relative to left of the screen.",
  966. "type": "number"
  967. },
  968. "y": {
  969. "default": 100,
  970. "description": "The Y position relative to bottom of the screen.",
  971. "type": "number"
  972. }
  973. },
  974. "type": "object"
  975. },
  976. "ElectronBrandingOptions": {
  977. "additionalProperties": false,
  978. "description": "Electron distributables branding options.",
  979. "properties": {
  980. "productName": {
  981. "type": "string"
  982. },
  983. "projectName": {
  984. "type": "string"
  985. }
  986. },
  987. "type": "object"
  988. },
  989. "ElectronDownloadOptions": {
  990. "additionalProperties": false,
  991. "properties": {
  992. "arch": {
  993. "type": "string"
  994. },
  995. "cache": {
  996. "description": "The [cache location](https://github.com/electron-userland/electron-download#cache-location).",
  997. "type": [
  998. "null",
  999. "string"
  1000. ]
  1001. },
  1002. "customDir": {
  1003. "type": [
  1004. "null",
  1005. "string"
  1006. ]
  1007. },
  1008. "customFilename": {
  1009. "type": [
  1010. "null",
  1011. "string"
  1012. ]
  1013. },
  1014. "isVerifyChecksum": {
  1015. "type": "boolean"
  1016. },
  1017. "mirror": {
  1018. "description": "The mirror.",
  1019. "type": [
  1020. "null",
  1021. "string"
  1022. ]
  1023. },
  1024. "platform": {
  1025. "enum": [
  1026. "darwin",
  1027. "linux",
  1028. "mas",
  1029. "win32"
  1030. ],
  1031. "type": "string"
  1032. },
  1033. "strictSSL": {
  1034. "type": "boolean"
  1035. },
  1036. "version": {
  1037. "type": "string"
  1038. }
  1039. },
  1040. "type": "object"
  1041. },
  1042. "FileAssociation": {
  1043. "additionalProperties": false,
  1044. "description": "File associations.\n\nmacOS (corresponds to [CFBundleDocumentTypes](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-101685)), NSIS, and MSI only.\n\nOn Windows (NSIS) works only if [nsis.perMachine](https://electron.build/configuration/configuration#NsisOptions-perMachine) is set to `true`.",
  1045. "properties": {
  1046. "description": {
  1047. "description": "*windows-only.* The description.",
  1048. "type": [
  1049. "null",
  1050. "string"
  1051. ]
  1052. },
  1053. "ext": {
  1054. "anyOf": [
  1055. {
  1056. "items": {
  1057. "type": "string"
  1058. },
  1059. "type": "array"
  1060. },
  1061. {
  1062. "type": "string"
  1063. }
  1064. ],
  1065. "description": "The extension (minus the leading period). e.g. `png`."
  1066. },
  1067. "icon": {
  1068. "description": "The path to icon (`.icns` for MacOS and `.ico` for Windows), relative to `build` (build resources directory). Defaults to `${firstExt}.icns`/`${firstExt}.ico` (if several extensions specified, first is used) or to application icon.\n\nNot supported on Linux, file issue if need (default icon will be `x-office-document`). Not supported on MSI.",
  1069. "type": [
  1070. "null",
  1071. "string"
  1072. ]
  1073. },
  1074. "isPackage": {
  1075. "description": "*macOS-only* Whether the document is distributed as a bundle. If set to true, the bundle directory is treated as a file. Corresponds to `LSTypeIsPackage`.",
  1076. "type": "boolean"
  1077. },
  1078. "mimeType": {
  1079. "description": "*linux-only.* The mime-type.",
  1080. "type": [
  1081. "null",
  1082. "string"
  1083. ]
  1084. },
  1085. "name": {
  1086. "description": "The name. e.g. `PNG`. Defaults to `ext`.",
  1087. "type": [
  1088. "null",
  1089. "string"
  1090. ]
  1091. },
  1092. "rank": {
  1093. "default": "Default",
  1094. "description": "*macOS-only* The app’s rank with respect to the type. The value can be `Owner`, `Default`, `Alternate`, or `None`. Corresponds to `LSHandlerRank`.",
  1095. "type": "string"
  1096. },
  1097. "role": {
  1098. "default": "Editor",
  1099. "description": "*macOS-only* The app’s role with respect to the type. The value can be `Editor`, `Viewer`, `Shell`, or `None`. Corresponds to `CFBundleTypeRole`.",
  1100. "type": "string"
  1101. }
  1102. },
  1103. "required": [
  1104. "ext"
  1105. ],
  1106. "type": "object"
  1107. },
  1108. "FileSet": {
  1109. "additionalProperties": false,
  1110. "properties": {
  1111. "filter": {
  1112. "anyOf": [
  1113. {
  1114. "items": {
  1115. "type": "string"
  1116. },
  1117. "type": "array"
  1118. },
  1119. {
  1120. "type": "string"
  1121. }
  1122. ],
  1123. "description": "The [glob patterns](/file-patterns)."
  1124. },
  1125. "from": {
  1126. "description": "The source path relative to the project directory.",
  1127. "type": "string"
  1128. },
  1129. "to": {
  1130. "description": "The destination path relative to the app's content directory for `extraFiles` and the app's resource directory for `extraResources`.",
  1131. "type": "string"
  1132. }
  1133. },
  1134. "type": "object"
  1135. },
  1136. "FlatpakOptions": {
  1137. "additionalProperties": false,
  1138. "properties": {
  1139. "artifactName": {
  1140. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  1141. "type": [
  1142. "null",
  1143. "string"
  1144. ]
  1145. },
  1146. "base": {
  1147. "description": "Start with the files from the specified application. This can be used to create applications that extend another application.\nDefaults to [org.electronjs.Electron2.BaseApp](https://github.com/flathub/org.electronjs.Electron2.BaseApp).\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
  1148. "type": "string"
  1149. },
  1150. "baseVersion": {
  1151. "description": "Use this specific version of the application specified in base. Defaults to `20.08`.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
  1152. "type": "string"
  1153. },
  1154. "branch": {
  1155. "description": "The branch to use when exporting the application. Defaults to `master`.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
  1156. "type": "string"
  1157. },
  1158. "category": {
  1159. "description": "The [application category](https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry).",
  1160. "type": [
  1161. "null",
  1162. "string"
  1163. ]
  1164. },
  1165. "description": {
  1166. "description": "As [description](/configuration/configuration#Metadata-description) from application package.json, but allows you to specify different for Linux.",
  1167. "type": [
  1168. "null",
  1169. "string"
  1170. ]
  1171. },
  1172. "desktop": {
  1173. "description": "The [Desktop file](https://developer.gnome.org/documentation/guidelines/maintainer/integrating.html#desktop-files) entries (name to value)."
  1174. },
  1175. "executableArgs": {
  1176. "anyOf": [
  1177. {
  1178. "items": {
  1179. "type": "string"
  1180. },
  1181. "type": "array"
  1182. },
  1183. {
  1184. "type": "null"
  1185. }
  1186. ],
  1187. "description": "The executable parameters. Pass to executableName"
  1188. },
  1189. "files": {
  1190. "description": "Files to copy directly into the app. Should be a list of [source, dest] tuples. Source should be a relative/absolute path to a file/directory to copy into the flatpak, and dest should be the path inside the app install prefix (e.g. /share/applications/).\n\nSee [@malept/flatpak-bundler documentation](https://github.com/malept/flatpak-bundler#build-options).",
  1191. "items": {
  1192. "items": [
  1193. {
  1194. "type": "string"
  1195. },
  1196. {
  1197. "type": "string"
  1198. }
  1199. ],
  1200. "maxItems": 2,
  1201. "minItems": 2,
  1202. "type": "array"
  1203. },
  1204. "type": "array"
  1205. },
  1206. "finishArgs": {
  1207. "description": "An array of arguments passed to the flatpak build-finish command. Defaults to:\n```json\n[\n // Wayland/X11 Rendering\n \"--socket=wayland\",\n \"--socket=x11\",\n \"--share=ipc\",\n // Open GL\n \"--device=dri\",\n // Audio output\n \"--socket=pulseaudio\",\n // Read/write home directory access\n \"--filesystem=home\",\n // Allow communication with network\n \"--share=network\",\n // System notifications with libnotify\n \"--talk-name=org.freedesktop.Notifications\",\n]\n```\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
  1208. "items": {
  1209. "type": "string"
  1210. },
  1211. "type": "array"
  1212. },
  1213. "license": {
  1214. "description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants). Only plain text is supported.",
  1215. "type": [
  1216. "null",
  1217. "string"
  1218. ]
  1219. },
  1220. "mimeTypes": {
  1221. "anyOf": [
  1222. {
  1223. "items": {
  1224. "type": "string"
  1225. },
  1226. "type": "array"
  1227. },
  1228. {
  1229. "type": "null"
  1230. }
  1231. ],
  1232. "description": "The mime types in addition to specified in the file associations. Use it if you don't want to register a new mime type, but reuse existing."
  1233. },
  1234. "modules": {
  1235. "description": "An array of objects specifying the modules to be built in order.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
  1236. "items": {},
  1237. "type": "array"
  1238. },
  1239. "publish": {
  1240. "anyOf": [
  1241. {
  1242. "$ref": "#/definitions/GithubOptions"
  1243. },
  1244. {
  1245. "$ref": "#/definitions/S3Options"
  1246. },
  1247. {
  1248. "$ref": "#/definitions/SpacesOptions"
  1249. },
  1250. {
  1251. "$ref": "#/definitions/GenericServerOptions"
  1252. },
  1253. {
  1254. "$ref": "#/definitions/CustomPublishOptions"
  1255. },
  1256. {
  1257. "$ref": "#/definitions/KeygenOptions"
  1258. },
  1259. {
  1260. "$ref": "#/definitions/SnapStoreOptions"
  1261. },
  1262. {
  1263. "$ref": "#/definitions/BitbucketOptions"
  1264. },
  1265. {
  1266. "items": {
  1267. "anyOf": [
  1268. {
  1269. "$ref": "#/definitions/GithubOptions"
  1270. },
  1271. {
  1272. "$ref": "#/definitions/S3Options"
  1273. },
  1274. {
  1275. "$ref": "#/definitions/SpacesOptions"
  1276. },
  1277. {
  1278. "$ref": "#/definitions/GenericServerOptions"
  1279. },
  1280. {
  1281. "$ref": "#/definitions/CustomPublishOptions"
  1282. },
  1283. {
  1284. "$ref": "#/definitions/KeygenOptions"
  1285. },
  1286. {
  1287. "$ref": "#/definitions/SnapStoreOptions"
  1288. },
  1289. {
  1290. "$ref": "#/definitions/BitbucketOptions"
  1291. },
  1292. {
  1293. "type": "string"
  1294. }
  1295. ]
  1296. },
  1297. "type": "array"
  1298. },
  1299. {
  1300. "type": [
  1301. "null",
  1302. "string"
  1303. ]
  1304. }
  1305. ]
  1306. },
  1307. "runtime": {
  1308. "description": "The name of the runtime that the application uses. Defaults to `org.freedesktop.Platform`.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
  1309. "type": "string"
  1310. },
  1311. "runtimeVersion": {
  1312. "description": "The version of the runtime that the application uses. Defaults to `20.08`.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
  1313. "type": "string"
  1314. },
  1315. "sdk": {
  1316. "description": "The name of the development runtime that the application builds with. Defaults to `org.freedesktop.Sdk`.\n\nSee [flatpak manifest documentation](https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest).",
  1317. "type": "string"
  1318. },
  1319. "symlinks": {
  1320. "description": "Symlinks to create in the app files. Should be a list of [target, location] symlink tuples. Target can be either a relative or absolute path inside the app install prefix, and location should be a absolute path inside the prefix to create the symlink at.\n\nSee [@malept/flatpak-bundler documentation](https://github.com/malept/flatpak-bundler#build-options).",
  1321. "items": {
  1322. "items": [
  1323. {
  1324. "type": "string"
  1325. },
  1326. {
  1327. "type": "string"
  1328. }
  1329. ],
  1330. "maxItems": 2,
  1331. "minItems": 2,
  1332. "type": "array"
  1333. },
  1334. "type": "array"
  1335. },
  1336. "synopsis": {
  1337. "description": "The [short description](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description).",
  1338. "type": [
  1339. "null",
  1340. "string"
  1341. ]
  1342. },
  1343. "useWaylandFlags": {
  1344. "description": "Whether to enable the Wayland specific flags (`--enable-features=UseOzonePlatform --ozone-platform=wayland`) in the wrapper script. These flags are only available starting with Electron version 12. Defaults to `false`.",
  1345. "type": "boolean"
  1346. }
  1347. },
  1348. "type": "object"
  1349. },
  1350. "GenericServerOptions": {
  1351. "additionalProperties": false,
  1352. "description": "Generic (any HTTP(S) server) options.\nIn all publish options [File Macros](/file-patterns#file-macros) are supported.",
  1353. "properties": {
  1354. "channel": {
  1355. "default": "latest",
  1356. "description": "The channel.",
  1357. "type": [
  1358. "null",
  1359. "string"
  1360. ]
  1361. },
  1362. "provider": {
  1363. "description": "The provider. Must be `generic`.",
  1364. "enum": [
  1365. "generic"
  1366. ],
  1367. "type": "string"
  1368. },
  1369. "publishAutoUpdate": {
  1370. "default": true,
  1371. "description": "Whether to publish auto update info files.\n\nAuto update relies only on the first provider in the list (you can specify several publishers).\nThus, probably, there`s no need to upload the metadata files for the other configured providers. But by default will be uploaded.",
  1372. "type": "boolean"
  1373. },
  1374. "publisherName": {
  1375. "anyOf": [
  1376. {
  1377. "items": {
  1378. "type": "string"
  1379. },
  1380. "type": "array"
  1381. },
  1382. {
  1383. "type": "null"
  1384. }
  1385. ]
  1386. },
  1387. "requestHeaders": {
  1388. "$ref": "#/definitions/OutgoingHttpHeaders",
  1389. "description": "Any custom request headers"
  1390. },
  1391. "timeout": {
  1392. "default": 120000,
  1393. "description": "Request timeout in milliseconds. (Default is 2 minutes; O is ignored)",
  1394. "type": [
  1395. "null",
  1396. "number"
  1397. ]
  1398. },
  1399. "updaterCacheDirName": {
  1400. "type": [
  1401. "null",
  1402. "string"
  1403. ]
  1404. },
  1405. "url": {
  1406. "description": "The base url. e.g. `https://bucket_name.s3.amazonaws.com`.",
  1407. "type": "string"
  1408. },
  1409. "useMultipleRangeRequest": {
  1410. "description": "Whether to use multiple range requests for differential update. Defaults to `true` if `url` doesn't contain `s3.amazonaws.com`.",
  1411. "type": "boolean"
  1412. }
  1413. },
  1414. "required": [
  1415. "provider",
  1416. "url"
  1417. ],
  1418. "type": "object"
  1419. },
  1420. "GithubOptions": {
  1421. "additionalProperties": false,
  1422. "description": "[GitHub](https://help.github.com/articles/about-releases/) options.\n\nGitHub [personal access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/) is required. You can generate by going to [https://github.com/settings/tokens/new](https://github.com/settings/tokens/new). The access token should have the repo scope/permission.\nDefine `GH_TOKEN` environment variable.",
  1423. "properties": {
  1424. "channel": {
  1425. "default": "latest",
  1426. "description": "The channel.",
  1427. "type": [
  1428. "null",
  1429. "string"
  1430. ]
  1431. },
  1432. "host": {
  1433. "default": "github.com",
  1434. "description": "The host (including the port if need).",
  1435. "type": [
  1436. "null",
  1437. "string"
  1438. ]
  1439. },
  1440. "owner": {
  1441. "description": "The owner.",
  1442. "type": [
  1443. "null",
  1444. "string"
  1445. ]
  1446. },
  1447. "private": {
  1448. "description": "Whether to use private github auto-update provider if `GH_TOKEN` environment variable is defined. See [Private GitHub Update Repo](/auto-update#private-github-update-repo).",
  1449. "type": [
  1450. "null",
  1451. "boolean"
  1452. ]
  1453. },
  1454. "protocol": {
  1455. "anyOf": [
  1456. {
  1457. "enum": [
  1458. "http",
  1459. "https"
  1460. ],
  1461. "type": "string"
  1462. },
  1463. {
  1464. "type": "null"
  1465. }
  1466. ],
  1467. "default": "https",
  1468. "description": "The protocol. GitHub Publisher supports only `https`."
  1469. },
  1470. "provider": {
  1471. "description": "The provider. Must be `github`.",
  1472. "enum": [
  1473. "github"
  1474. ],
  1475. "type": "string"
  1476. },
  1477. "publishAutoUpdate": {
  1478. "default": true,
  1479. "description": "Whether to publish auto update info files.\n\nAuto update relies only on the first provider in the list (you can specify several publishers).\nThus, probably, there`s no need to upload the metadata files for the other configured providers. But by default will be uploaded.",
  1480. "type": "boolean"
  1481. },
  1482. "publisherName": {
  1483. "anyOf": [
  1484. {
  1485. "items": {
  1486. "type": "string"
  1487. },
  1488. "type": "array"
  1489. },
  1490. {
  1491. "type": "null"
  1492. }
  1493. ]
  1494. },
  1495. "releaseType": {
  1496. "anyOf": [
  1497. {
  1498. "enum": [
  1499. "draft",
  1500. "prerelease",
  1501. "release"
  1502. ],
  1503. "type": "string"
  1504. },
  1505. {
  1506. "type": "null"
  1507. }
  1508. ],
  1509. "default": "draft",
  1510. "description": "The type of release. By default `draft` release will be created.\n\nAlso you can set release type using environment variable. If `EP_DRAFT`is set to `true` — `draft`, if `EP_PRE_RELEASE`is set to `true` — `prerelease`."
  1511. },
  1512. "repo": {
  1513. "description": "The repository name. [Detected automatically](#github-repository-and-bintray-package).",
  1514. "type": [
  1515. "null",
  1516. "string"
  1517. ]
  1518. },
  1519. "requestHeaders": {
  1520. "$ref": "#/definitions/OutgoingHttpHeaders",
  1521. "description": "Any custom request headers"
  1522. },
  1523. "timeout": {
  1524. "default": 120000,
  1525. "description": "Request timeout in milliseconds. (Default is 2 minutes; O is ignored)",
  1526. "type": [
  1527. "null",
  1528. "number"
  1529. ]
  1530. },
  1531. "token": {
  1532. "description": "The access token to support auto-update from private github repositories. Never specify it in the configuration files. Only for [setFeedURL](/auto-update#appupdatersetfeedurloptions).",
  1533. "type": [
  1534. "null",
  1535. "string"
  1536. ]
  1537. },
  1538. "updaterCacheDirName": {
  1539. "type": [
  1540. "null",
  1541. "string"
  1542. ]
  1543. },
  1544. "vPrefixedTagName": {
  1545. "default": true,
  1546. "description": "Whether to use `v`-prefixed tag name.",
  1547. "type": "boolean"
  1548. }
  1549. },
  1550. "required": [
  1551. "provider"
  1552. ],
  1553. "type": "object"
  1554. },
  1555. "KeygenOptions": {
  1556. "additionalProperties": false,
  1557. "description": "Keygen options.\nhttps://keygen.sh/\nDefine `KEYGEN_TOKEN` environment variable.",
  1558. "properties": {
  1559. "account": {
  1560. "description": "Keygen account's UUID",
  1561. "type": "string"
  1562. },
  1563. "channel": {
  1564. "anyOf": [
  1565. {
  1566. "enum": [
  1567. "alpha",
  1568. "beta",
  1569. "dev",
  1570. "rc",
  1571. "stable"
  1572. ],
  1573. "type": "string"
  1574. },
  1575. {
  1576. "type": "null"
  1577. }
  1578. ],
  1579. "default": "stable",
  1580. "description": "The channel."
  1581. },
  1582. "platform": {
  1583. "description": "The target Platform. Is set programmatically explicitly during publishing.",
  1584. "type": [
  1585. "null",
  1586. "string"
  1587. ]
  1588. },
  1589. "product": {
  1590. "description": "Keygen product's UUID",
  1591. "type": "string"
  1592. },
  1593. "provider": {
  1594. "description": "The provider. Must be `keygen`.",
  1595. "enum": [
  1596. "keygen"
  1597. ],
  1598. "type": "string"
  1599. },
  1600. "publishAutoUpdate": {
  1601. "default": true,
  1602. "description": "Whether to publish auto update info files.\n\nAuto update relies only on the first provider in the list (you can specify several publishers).\nThus, probably, there`s no need to upload the metadata files for the other configured providers. But by default will be uploaded.",
  1603. "type": "boolean"
  1604. },
  1605. "publisherName": {
  1606. "anyOf": [
  1607. {
  1608. "items": {
  1609. "type": "string"
  1610. },
  1611. "type": "array"
  1612. },
  1613. {
  1614. "type": "null"
  1615. }
  1616. ]
  1617. },
  1618. "requestHeaders": {
  1619. "$ref": "#/definitions/OutgoingHttpHeaders",
  1620. "description": "Any custom request headers"
  1621. },
  1622. "timeout": {
  1623. "default": 120000,
  1624. "description": "Request timeout in milliseconds. (Default is 2 minutes; O is ignored)",
  1625. "type": [
  1626. "null",
  1627. "number"
  1628. ]
  1629. },
  1630. "updaterCacheDirName": {
  1631. "type": [
  1632. "null",
  1633. "string"
  1634. ]
  1635. }
  1636. },
  1637. "required": [
  1638. "account",
  1639. "product",
  1640. "provider"
  1641. ],
  1642. "type": "object"
  1643. },
  1644. "LinuxConfiguration": {
  1645. "additionalProperties": false,
  1646. "properties": {
  1647. "appId": {
  1648. "default": "com.electron.${name}",
  1649. "description": "The application id. Used as [CFBundleIdentifier](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070) for MacOS and as\n[Application User Model ID](https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx) for Windows (NSIS target only, Squirrel.Windows not supported). It is strongly recommended that an explicit ID is set.",
  1650. "type": [
  1651. "null",
  1652. "string"
  1653. ]
  1654. },
  1655. "artifactName": {
  1656. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template). Defaults to `${productName}-${version}.${ext}` (some target can have other defaults, see corresponding options).",
  1657. "type": [
  1658. "null",
  1659. "string"
  1660. ]
  1661. },
  1662. "asar": {
  1663. "anyOf": [
  1664. {
  1665. "$ref": "#/definitions/AsarOptions"
  1666. },
  1667. {
  1668. "type": [
  1669. "null",
  1670. "boolean"
  1671. ]
  1672. }
  1673. ],
  1674. "default": true,
  1675. "description": "Whether to package the application's source code into an archive, using [Electron's archive format](http://electron.atom.io/docs/tutorial/application-packaging/).\n\nNode modules, that must be unpacked, will be detected automatically, you don't need to explicitly set [asarUnpack](#configuration-asarUnpack) - please file an issue if this doesn't work."
  1676. },
  1677. "asarUnpack": {
  1678. "anyOf": [
  1679. {
  1680. "items": {
  1681. "type": "string"
  1682. },
  1683. "type": "array"
  1684. },
  1685. {
  1686. "type": [
  1687. "null",
  1688. "string"
  1689. ]
  1690. }
  1691. ],
  1692. "description": "A [glob patterns](/file-patterns) relative to the [app directory](#MetadataDirectories-app), which specifies which files to unpack when creating the [asar](http://electron.atom.io/docs/tutorial/application-packaging/) archive."
  1693. },
  1694. "category": {
  1695. "description": "The [application category](https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry).",
  1696. "type": [
  1697. "null",
  1698. "string"
  1699. ]
  1700. },
  1701. "compression": {
  1702. "anyOf": [
  1703. {
  1704. "enum": [
  1705. "maximum",
  1706. "normal",
  1707. "store"
  1708. ],
  1709. "type": "string"
  1710. },
  1711. {
  1712. "type": "null"
  1713. }
  1714. ],
  1715. "default": "normal",
  1716. "description": "The compression level. If you want to rapidly test build, `store` can reduce build time significantly. `maximum` doesn't lead to noticeable size difference, but increase build time."
  1717. },
  1718. "cscKeyPassword": {
  1719. "type": [
  1720. "null",
  1721. "string"
  1722. ]
  1723. },
  1724. "cscLink": {
  1725. "type": [
  1726. "null",
  1727. "string"
  1728. ]
  1729. },
  1730. "defaultArch": {
  1731. "type": "string"
  1732. },
  1733. "description": {
  1734. "description": "As [description](/configuration/configuration#Metadata-description) from application package.json, but allows you to specify different for Linux.",
  1735. "type": [
  1736. "null",
  1737. "string"
  1738. ]
  1739. },
  1740. "desktop": {
  1741. "description": "The [Desktop file](https://developer.gnome.org/documentation/guidelines/maintainer/integrating.html#desktop-files) entries (name to value)."
  1742. },
  1743. "detectUpdateChannel": {
  1744. "default": true,
  1745. "description": "Whether to infer update channel from application version pre-release components. e.g. if version `0.12.1-alpha.1`, channel will be set to `alpha`. Otherwise to `latest`.",
  1746. "type": "boolean"
  1747. },
  1748. "electronLanguages": {
  1749. "anyOf": [
  1750. {
  1751. "items": {
  1752. "type": "string"
  1753. },
  1754. "type": "array"
  1755. },
  1756. {
  1757. "type": "string"
  1758. }
  1759. ],
  1760. "description": "The electron locales to keep. By default, all Electron locales used as-is."
  1761. },
  1762. "electronUpdaterCompatibility": {
  1763. "description": "The [electron-updater compatibility](/auto-update#compatibility) semver range.",
  1764. "type": [
  1765. "null",
  1766. "string"
  1767. ]
  1768. },
  1769. "executableArgs": {
  1770. "anyOf": [
  1771. {
  1772. "items": {
  1773. "type": "string"
  1774. },
  1775. "type": "array"
  1776. },
  1777. {
  1778. "type": "null"
  1779. }
  1780. ],
  1781. "description": "The executable parameters. Pass to executableName"
  1782. },
  1783. "executableName": {
  1784. "description": "The executable name. Defaults to `productName`.",
  1785. "type": [
  1786. "null",
  1787. "string"
  1788. ]
  1789. },
  1790. "extraFiles": {
  1791. "anyOf": [
  1792. {
  1793. "$ref": "#/definitions/FileSet"
  1794. },
  1795. {
  1796. "items": {
  1797. "anyOf": [
  1798. {
  1799. "$ref": "#/definitions/FileSet"
  1800. },
  1801. {
  1802. "type": "string"
  1803. }
  1804. ]
  1805. },
  1806. "type": "array"
  1807. },
  1808. {
  1809. "type": [
  1810. "null",
  1811. "string"
  1812. ]
  1813. }
  1814. ]
  1815. },
  1816. "extraResources": {
  1817. "anyOf": [
  1818. {
  1819. "$ref": "#/definitions/FileSet"
  1820. },
  1821. {
  1822. "items": {
  1823. "anyOf": [
  1824. {
  1825. "$ref": "#/definitions/FileSet"
  1826. },
  1827. {
  1828. "type": "string"
  1829. }
  1830. ]
  1831. },
  1832. "type": "array"
  1833. },
  1834. {
  1835. "type": [
  1836. "null",
  1837. "string"
  1838. ]
  1839. }
  1840. ]
  1841. },
  1842. "fileAssociations": {
  1843. "anyOf": [
  1844. {
  1845. "$ref": "#/definitions/FileAssociation"
  1846. },
  1847. {
  1848. "items": {
  1849. "$ref": "#/definitions/FileAssociation"
  1850. },
  1851. "type": "array"
  1852. }
  1853. ],
  1854. "description": "The file associations."
  1855. },
  1856. "files": {
  1857. "anyOf": [
  1858. {
  1859. "$ref": "#/definitions/FileSet"
  1860. },
  1861. {
  1862. "items": {
  1863. "anyOf": [
  1864. {
  1865. "$ref": "#/definitions/FileSet"
  1866. },
  1867. {
  1868. "type": "string"
  1869. }
  1870. ]
  1871. },
  1872. "type": "array"
  1873. },
  1874. {
  1875. "type": [
  1876. "null",
  1877. "string"
  1878. ]
  1879. }
  1880. ]
  1881. },
  1882. "forceCodeSigning": {
  1883. "description": "Whether to fail if app will be not code signed.",
  1884. "type": "boolean"
  1885. },
  1886. "generateUpdatesFilesForAllChannels": {
  1887. "default": false,
  1888. "description": "Please see [Building and Releasing using Channels](https://github.com/electron-userland/electron-builder/issues/1182#issuecomment-324947139).",
  1889. "type": "boolean"
  1890. },
  1891. "icon": {
  1892. "description": "The path to icon set directory or one png file, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory. The icon filename must contain the size (e.g. 32x32.png) of the icon.\nBy default will be generated automatically based on the macOS icns file.",
  1893. "type": "string"
  1894. },
  1895. "maintainer": {
  1896. "description": "The maintainer. Defaults to [author](/configuration/configuration#Metadata-author).",
  1897. "type": [
  1898. "null",
  1899. "string"
  1900. ]
  1901. },
  1902. "mimeTypes": {
  1903. "anyOf": [
  1904. {
  1905. "items": {
  1906. "type": "string"
  1907. },
  1908. "type": "array"
  1909. },
  1910. {
  1911. "type": "null"
  1912. }
  1913. ],
  1914. "description": "The mime types in addition to specified in the file associations. Use it if you don't want to register a new mime type, but reuse existing."
  1915. },
  1916. "packageCategory": {
  1917. "description": "backward compatibility + to allow specify fpm-only category for all possible fpm targets in one place",
  1918. "type": [
  1919. "null",
  1920. "string"
  1921. ]
  1922. },
  1923. "protocols": {
  1924. "anyOf": [
  1925. {
  1926. "$ref": "#/definitions/Protocol"
  1927. },
  1928. {
  1929. "items": {
  1930. "$ref": "#/definitions/Protocol"
  1931. },
  1932. "type": "array"
  1933. }
  1934. ],
  1935. "description": "The URL protocol schemes."
  1936. },
  1937. "publish": {
  1938. "anyOf": [
  1939. {
  1940. "$ref": "#/definitions/GithubOptions"
  1941. },
  1942. {
  1943. "$ref": "#/definitions/S3Options"
  1944. },
  1945. {
  1946. "$ref": "#/definitions/SpacesOptions"
  1947. },
  1948. {
  1949. "$ref": "#/definitions/GenericServerOptions"
  1950. },
  1951. {
  1952. "$ref": "#/definitions/CustomPublishOptions"
  1953. },
  1954. {
  1955. "$ref": "#/definitions/KeygenOptions"
  1956. },
  1957. {
  1958. "$ref": "#/definitions/SnapStoreOptions"
  1959. },
  1960. {
  1961. "$ref": "#/definitions/BitbucketOptions"
  1962. },
  1963. {
  1964. "items": {
  1965. "anyOf": [
  1966. {
  1967. "$ref": "#/definitions/GithubOptions"
  1968. },
  1969. {
  1970. "$ref": "#/definitions/S3Options"
  1971. },
  1972. {
  1973. "$ref": "#/definitions/SpacesOptions"
  1974. },
  1975. {
  1976. "$ref": "#/definitions/GenericServerOptions"
  1977. },
  1978. {
  1979. "$ref": "#/definitions/CustomPublishOptions"
  1980. },
  1981. {
  1982. "$ref": "#/definitions/KeygenOptions"
  1983. },
  1984. {
  1985. "$ref": "#/definitions/SnapStoreOptions"
  1986. },
  1987. {
  1988. "$ref": "#/definitions/BitbucketOptions"
  1989. },
  1990. {
  1991. "type": "string"
  1992. }
  1993. ]
  1994. },
  1995. "type": "array"
  1996. },
  1997. {
  1998. "type": [
  1999. "null",
  2000. "string"
  2001. ]
  2002. }
  2003. ]
  2004. },
  2005. "releaseInfo": {
  2006. "$ref": "#/definitions/ReleaseInfo",
  2007. "description": "The release info. Intended for command line usage:\n\n```\n-c.releaseInfo.releaseNotes=\"new features\"\n```"
  2008. },
  2009. "synopsis": {
  2010. "description": "The [short description](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description).",
  2011. "type": [
  2012. "null",
  2013. "string"
  2014. ]
  2015. },
  2016. "target": {
  2017. "anyOf": [
  2018. {
  2019. "$ref": "#/definitions/TargetConfiguration"
  2020. },
  2021. {
  2022. "items": {
  2023. "anyOf": [
  2024. {
  2025. "$ref": "#/definitions/TargetConfiguration"
  2026. },
  2027. {
  2028. "type": "string"
  2029. }
  2030. ]
  2031. },
  2032. "type": "array"
  2033. },
  2034. {
  2035. "type": [
  2036. "null",
  2037. "string"
  2038. ]
  2039. }
  2040. ],
  2041. "default": "AppImage",
  2042. "description": "Target package type: list of `AppImage`, `flatpak`, `snap`, `deb`, `rpm`, `freebsd`, `pacman`, `p5p`, `apk`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`.\n\nelectron-builder [docker image](/multi-platform-build#docker) can be used to build Linux targets on any platform.\n\nPlease [do not put an AppImage into another archive](https://github.com/probonopd/AppImageKit/wiki/Creating-AppImages#common-mistake) like a .zip or .tar.gz."
  2043. },
  2044. "vendor": {
  2045. "description": "The vendor. Defaults to [author](/configuration/configuration#Metadata-author).",
  2046. "type": [
  2047. "null",
  2048. "string"
  2049. ]
  2050. }
  2051. },
  2052. "type": "object"
  2053. },
  2054. "LinuxTargetSpecificOptions": {
  2055. "additionalProperties": false,
  2056. "properties": {
  2057. "afterInstall": {
  2058. "type": [
  2059. "null",
  2060. "string"
  2061. ]
  2062. },
  2063. "afterRemove": {
  2064. "type": [
  2065. "null",
  2066. "string"
  2067. ]
  2068. },
  2069. "artifactName": {
  2070. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  2071. "type": [
  2072. "null",
  2073. "string"
  2074. ]
  2075. },
  2076. "category": {
  2077. "description": "The [application category](https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry).",
  2078. "type": [
  2079. "null",
  2080. "string"
  2081. ]
  2082. },
  2083. "compression": {
  2084. "anyOf": [
  2085. {
  2086. "enum": [
  2087. "bzip2",
  2088. "gz",
  2089. "lzo",
  2090. "xz"
  2091. ],
  2092. "type": "string"
  2093. },
  2094. {
  2095. "type": "null"
  2096. }
  2097. ],
  2098. "default": "xz",
  2099. "description": "The compression type."
  2100. },
  2101. "depends": {
  2102. "anyOf": [
  2103. {
  2104. "items": {
  2105. "type": "string"
  2106. },
  2107. "type": "array"
  2108. },
  2109. {
  2110. "type": "null"
  2111. }
  2112. ],
  2113. "description": "Package dependencies."
  2114. },
  2115. "description": {
  2116. "description": "As [description](/configuration/configuration#Metadata-description) from application package.json, but allows you to specify different for Linux.",
  2117. "type": [
  2118. "null",
  2119. "string"
  2120. ]
  2121. },
  2122. "desktop": {
  2123. "description": "The [Desktop file](https://developer.gnome.org/documentation/guidelines/maintainer/integrating.html#desktop-files) entries (name to value)."
  2124. },
  2125. "executableArgs": {
  2126. "anyOf": [
  2127. {
  2128. "items": {
  2129. "type": "string"
  2130. },
  2131. "type": "array"
  2132. },
  2133. {
  2134. "type": "null"
  2135. }
  2136. ],
  2137. "description": "The executable parameters. Pass to executableName"
  2138. },
  2139. "fpm": {
  2140. "anyOf": [
  2141. {
  2142. "items": {
  2143. "type": "string"
  2144. },
  2145. "type": "array"
  2146. },
  2147. {
  2148. "type": "null"
  2149. }
  2150. ],
  2151. "description": "*Advanced only* The [fpm](https://fpm.readthedocs.io/en/latest/cli-reference.html) options.\n\nExample: `[\"--before-install=build/deb-preinstall.sh\", \"--after-upgrade=build/deb-postinstall.sh\"]`"
  2152. },
  2153. "icon": {
  2154. "type": "string"
  2155. },
  2156. "maintainer": {
  2157. "type": [
  2158. "null",
  2159. "string"
  2160. ]
  2161. },
  2162. "mimeTypes": {
  2163. "anyOf": [
  2164. {
  2165. "items": {
  2166. "type": "string"
  2167. },
  2168. "type": "array"
  2169. },
  2170. {
  2171. "type": "null"
  2172. }
  2173. ],
  2174. "description": "The mime types in addition to specified in the file associations. Use it if you don't want to register a new mime type, but reuse existing."
  2175. },
  2176. "packageCategory": {
  2177. "description": "The package category.",
  2178. "type": [
  2179. "null",
  2180. "string"
  2181. ]
  2182. },
  2183. "packageName": {
  2184. "description": "The name of the package.",
  2185. "type": [
  2186. "null",
  2187. "string"
  2188. ]
  2189. },
  2190. "publish": {
  2191. "anyOf": [
  2192. {
  2193. "$ref": "#/definitions/GithubOptions"
  2194. },
  2195. {
  2196. "$ref": "#/definitions/S3Options"
  2197. },
  2198. {
  2199. "$ref": "#/definitions/SpacesOptions"
  2200. },
  2201. {
  2202. "$ref": "#/definitions/GenericServerOptions"
  2203. },
  2204. {
  2205. "$ref": "#/definitions/CustomPublishOptions"
  2206. },
  2207. {
  2208. "$ref": "#/definitions/KeygenOptions"
  2209. },
  2210. {
  2211. "$ref": "#/definitions/SnapStoreOptions"
  2212. },
  2213. {
  2214. "$ref": "#/definitions/BitbucketOptions"
  2215. },
  2216. {
  2217. "items": {
  2218. "anyOf": [
  2219. {
  2220. "$ref": "#/definitions/GithubOptions"
  2221. },
  2222. {
  2223. "$ref": "#/definitions/S3Options"
  2224. },
  2225. {
  2226. "$ref": "#/definitions/SpacesOptions"
  2227. },
  2228. {
  2229. "$ref": "#/definitions/GenericServerOptions"
  2230. },
  2231. {
  2232. "$ref": "#/definitions/CustomPublishOptions"
  2233. },
  2234. {
  2235. "$ref": "#/definitions/KeygenOptions"
  2236. },
  2237. {
  2238. "$ref": "#/definitions/SnapStoreOptions"
  2239. },
  2240. {
  2241. "$ref": "#/definitions/BitbucketOptions"
  2242. },
  2243. {
  2244. "type": "string"
  2245. }
  2246. ]
  2247. },
  2248. "type": "array"
  2249. },
  2250. {
  2251. "type": [
  2252. "null",
  2253. "string"
  2254. ]
  2255. }
  2256. ]
  2257. },
  2258. "synopsis": {
  2259. "description": "The [short description](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description).",
  2260. "type": [
  2261. "null",
  2262. "string"
  2263. ]
  2264. },
  2265. "vendor": {
  2266. "type": [
  2267. "null",
  2268. "string"
  2269. ]
  2270. }
  2271. },
  2272. "type": "object"
  2273. },
  2274. "MacConfiguration": {
  2275. "additionalProperties": false,
  2276. "properties": {
  2277. "appId": {
  2278. "default": "com.electron.${name}",
  2279. "description": "The application id. Used as [CFBundleIdentifier](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070) for MacOS and as\n[Application User Model ID](https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx) for Windows (NSIS target only, Squirrel.Windows not supported). It is strongly recommended that an explicit ID is set.",
  2280. "type": [
  2281. "null",
  2282. "string"
  2283. ]
  2284. },
  2285. "artifactName": {
  2286. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template). Defaults to `${productName}-${version}.${ext}` (some target can have other defaults, see corresponding options).",
  2287. "type": [
  2288. "null",
  2289. "string"
  2290. ]
  2291. },
  2292. "asar": {
  2293. "anyOf": [
  2294. {
  2295. "$ref": "#/definitions/AsarOptions"
  2296. },
  2297. {
  2298. "type": [
  2299. "null",
  2300. "boolean"
  2301. ]
  2302. }
  2303. ],
  2304. "default": true,
  2305. "description": "Whether to package the application's source code into an archive, using [Electron's archive format](http://electron.atom.io/docs/tutorial/application-packaging/).\n\nNode modules, that must be unpacked, will be detected automatically, you don't need to explicitly set [asarUnpack](#configuration-asarUnpack) - please file an issue if this doesn't work."
  2306. },
  2307. "asarUnpack": {
  2308. "anyOf": [
  2309. {
  2310. "items": {
  2311. "type": "string"
  2312. },
  2313. "type": "array"
  2314. },
  2315. {
  2316. "type": [
  2317. "null",
  2318. "string"
  2319. ]
  2320. }
  2321. ],
  2322. "description": "A [glob patterns](/file-patterns) relative to the [app directory](#MetadataDirectories-app), which specifies which files to unpack when creating the [asar](http://electron.atom.io/docs/tutorial/application-packaging/) archive."
  2323. },
  2324. "binaries": {
  2325. "anyOf": [
  2326. {
  2327. "items": {
  2328. "type": "string"
  2329. },
  2330. "type": "array"
  2331. },
  2332. {
  2333. "type": "null"
  2334. }
  2335. ],
  2336. "description": "Paths of any extra binaries that need to be signed."
  2337. },
  2338. "bundleShortVersion": {
  2339. "description": "The `CFBundleShortVersionString`. Do not use it unless you need to.",
  2340. "type": [
  2341. "null",
  2342. "string"
  2343. ]
  2344. },
  2345. "bundleVersion": {
  2346. "description": "The `CFBundleVersion`. Do not use it unless [you need to](https://github.com/electron-userland/electron-builder/issues/565#issuecomment-230678643).",
  2347. "type": [
  2348. "null",
  2349. "string"
  2350. ]
  2351. },
  2352. "category": {
  2353. "description": "The application category type, as shown in the Finder via *View -> Arrange by Application Category* when viewing the Applications directory.\n\nFor example, `\"category\": \"public.app-category.developer-tools\"` will set the application category to *Developer Tools*.\n\nValid values are listed in [Apple's documentation](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW8).",
  2354. "type": [
  2355. "null",
  2356. "string"
  2357. ]
  2358. },
  2359. "compression": {
  2360. "anyOf": [
  2361. {
  2362. "enum": [
  2363. "maximum",
  2364. "normal",
  2365. "store"
  2366. ],
  2367. "type": "string"
  2368. },
  2369. {
  2370. "type": "null"
  2371. }
  2372. ],
  2373. "default": "normal",
  2374. "description": "The compression level. If you want to rapidly test build, `store` can reduce build time significantly. `maximum` doesn't lead to noticeable size difference, but increase build time."
  2375. },
  2376. "cscInstallerKeyPassword": {
  2377. "type": [
  2378. "null",
  2379. "string"
  2380. ]
  2381. },
  2382. "cscInstallerLink": {
  2383. "type": [
  2384. "null",
  2385. "string"
  2386. ]
  2387. },
  2388. "cscKeyPassword": {
  2389. "type": [
  2390. "null",
  2391. "string"
  2392. ]
  2393. },
  2394. "cscLink": {
  2395. "type": [
  2396. "null",
  2397. "string"
  2398. ]
  2399. },
  2400. "darkModeSupport": {
  2401. "default": false,
  2402. "description": "Whether a dark mode is supported. If your app does have a dark mode, you can make your app follow the system-wide dark mode setting.",
  2403. "type": "boolean"
  2404. },
  2405. "defaultArch": {
  2406. "type": "string"
  2407. },
  2408. "detectUpdateChannel": {
  2409. "default": true,
  2410. "description": "Whether to infer update channel from application version pre-release components. e.g. if version `0.12.1-alpha.1`, channel will be set to `alpha`. Otherwise to `latest`.",
  2411. "type": "boolean"
  2412. },
  2413. "electronLanguages": {
  2414. "anyOf": [
  2415. {
  2416. "items": {
  2417. "type": "string"
  2418. },
  2419. "type": "array"
  2420. },
  2421. {
  2422. "type": "string"
  2423. }
  2424. ],
  2425. "description": "The electron locales to keep. By default, all Electron locales used as-is."
  2426. },
  2427. "electronUpdaterCompatibility": {
  2428. "description": "The [electron-updater compatibility](/auto-update#compatibility) semver range.",
  2429. "type": [
  2430. "null",
  2431. "string"
  2432. ]
  2433. },
  2434. "entitlements": {
  2435. "description": "The path to entitlements file for signing the app. `build/entitlements.mac.plist` will be used if exists (it is a recommended way to set).\nMAS entitlements is specified in the [mas](/configuration/mas).\nSee [this folder in osx-sign's repository](https://github.com/electron/osx-sign/tree/main/entitlements) for examples.\nBe aware that your app may crash if the right entitlements are not set like `com.apple.security.cs.allow-jit` for example on arm64 builds with Electron 20+.\nSee [Signing and Notarizing macOS Builds from the Electron documentation](https://www.electronjs.org/docs/latest/tutorial/code-signing#signing--notarizing-macos-builds) for more information.",
  2436. "type": [
  2437. "null",
  2438. "string"
  2439. ]
  2440. },
  2441. "entitlementsInherit": {
  2442. "description": "The path to child entitlements which inherit the security settings for signing frameworks and bundles of a distribution. `build/entitlements.mac.inherit.plist` will be used if exists (it is a recommended way to set).\nSee [this folder in osx-sign's repository](https://github.com/electron/osx-sign/tree/main/entitlements) for examples.\n\nThis option only applies when signing with `entitlements` provided.",
  2443. "type": [
  2444. "null",
  2445. "string"
  2446. ]
  2447. },
  2448. "entitlementsLoginHelper": {
  2449. "description": "Path to login helper entitlement file.\nWhen using App Sandbox, the the `com.apple.security.inherit` key that is normally in the inherited entitlements cannot be inherited since the login helper is a standalone executable.\nDefaults to the value provided for `entitlements`. This option only applies when signing with `entitlements` provided.",
  2450. "type": [
  2451. "null",
  2452. "string"
  2453. ]
  2454. },
  2455. "executableName": {
  2456. "description": "The executable name. Defaults to `productName`.",
  2457. "type": [
  2458. "null",
  2459. "string"
  2460. ]
  2461. },
  2462. "extendInfo": {
  2463. "description": "The extra entries for `Info.plist`."
  2464. },
  2465. "extraDistFiles": {
  2466. "anyOf": [
  2467. {
  2468. "items": {
  2469. "type": "string"
  2470. },
  2471. "type": "array"
  2472. },
  2473. {
  2474. "type": [
  2475. "null",
  2476. "string"
  2477. ]
  2478. }
  2479. ],
  2480. "description": "Extra files to put in archive. Not applicable for `tar.*`."
  2481. },
  2482. "extraFiles": {
  2483. "anyOf": [
  2484. {
  2485. "$ref": "#/definitions/FileSet"
  2486. },
  2487. {
  2488. "items": {
  2489. "anyOf": [
  2490. {
  2491. "$ref": "#/definitions/FileSet"
  2492. },
  2493. {
  2494. "type": "string"
  2495. }
  2496. ]
  2497. },
  2498. "type": "array"
  2499. },
  2500. {
  2501. "type": [
  2502. "null",
  2503. "string"
  2504. ]
  2505. }
  2506. ]
  2507. },
  2508. "extraResources": {
  2509. "anyOf": [
  2510. {
  2511. "$ref": "#/definitions/FileSet"
  2512. },
  2513. {
  2514. "items": {
  2515. "anyOf": [
  2516. {
  2517. "$ref": "#/definitions/FileSet"
  2518. },
  2519. {
  2520. "type": "string"
  2521. }
  2522. ]
  2523. },
  2524. "type": "array"
  2525. },
  2526. {
  2527. "type": [
  2528. "null",
  2529. "string"
  2530. ]
  2531. }
  2532. ]
  2533. },
  2534. "fileAssociations": {
  2535. "anyOf": [
  2536. {
  2537. "$ref": "#/definitions/FileAssociation"
  2538. },
  2539. {
  2540. "items": {
  2541. "$ref": "#/definitions/FileAssociation"
  2542. },
  2543. "type": "array"
  2544. }
  2545. ],
  2546. "description": "The file associations."
  2547. },
  2548. "files": {
  2549. "anyOf": [
  2550. {
  2551. "$ref": "#/definitions/FileSet"
  2552. },
  2553. {
  2554. "items": {
  2555. "anyOf": [
  2556. {
  2557. "$ref": "#/definitions/FileSet"
  2558. },
  2559. {
  2560. "type": "string"
  2561. }
  2562. ]
  2563. },
  2564. "type": "array"
  2565. },
  2566. {
  2567. "type": [
  2568. "null",
  2569. "string"
  2570. ]
  2571. }
  2572. ]
  2573. },
  2574. "forceCodeSigning": {
  2575. "description": "Whether to fail if app will be not code signed.",
  2576. "type": "boolean"
  2577. },
  2578. "gatekeeperAssess": {
  2579. "default": false,
  2580. "description": "Whether to let @electron/osx-sign validate the signing or not.",
  2581. "type": "boolean"
  2582. },
  2583. "generateUpdatesFilesForAllChannels": {
  2584. "default": false,
  2585. "description": "Please see [Building and Releasing using Channels](https://github.com/electron-userland/electron-builder/issues/1182#issuecomment-324947139).",
  2586. "type": "boolean"
  2587. },
  2588. "hardenedRuntime": {
  2589. "default": true,
  2590. "description": "Whether your app has to be signed with hardened runtime.",
  2591. "type": "boolean"
  2592. },
  2593. "helperBundleId": {
  2594. "default": "${appBundleIdentifier}.helper",
  2595. "description": "The bundle identifier to use in the application helper's plist.",
  2596. "type": [
  2597. "null",
  2598. "string"
  2599. ]
  2600. },
  2601. "helperEHBundleId": {
  2602. "default": "${appBundleIdentifier}.helper.EH",
  2603. "description": "The bundle identifier to use in the EH helper's plist.",
  2604. "type": [
  2605. "null",
  2606. "string"
  2607. ]
  2608. },
  2609. "helperGPUBundleId": {
  2610. "default": "${appBundleIdentifier}.helper.GPU",
  2611. "description": "The bundle identifier to use in the GPU helper's plist.",
  2612. "type": [
  2613. "null",
  2614. "string"
  2615. ]
  2616. },
  2617. "helperNPBundleId": {
  2618. "default": "${appBundleIdentifier}.helper.NP",
  2619. "description": "The bundle identifier to use in the NP helper's plist.",
  2620. "type": [
  2621. "null",
  2622. "string"
  2623. ]
  2624. },
  2625. "helperPluginBundleId": {
  2626. "default": "${appBundleIdentifier}.helper.Plugin",
  2627. "description": "The bundle identifier to use in the Plugin helper's plist.",
  2628. "type": [
  2629. "null",
  2630. "string"
  2631. ]
  2632. },
  2633. "helperRendererBundleId": {
  2634. "default": "${appBundleIdentifier}.helper.Renderer",
  2635. "description": "The bundle identifier to use in the Renderer helper's plist.",
  2636. "type": [
  2637. "null",
  2638. "string"
  2639. ]
  2640. },
  2641. "icon": {
  2642. "default": "build/icon.icns",
  2643. "description": "The path to application icon.",
  2644. "type": [
  2645. "null",
  2646. "string"
  2647. ]
  2648. },
  2649. "identity": {
  2650. "description": "The name of certificate to use when signing. Consider using environment variables [CSC_LINK or CSC_NAME](/code-signing) instead of specifying this option.\nMAS installer identity is specified in the [mas](/configuration/mas).",
  2651. "type": [
  2652. "null",
  2653. "string"
  2654. ]
  2655. },
  2656. "mergeASARs": {
  2657. "default": true,
  2658. "description": "Whether to merge ASAR files for different architectures or not.\n\nThis option has no effect unless building for \"universal\" arch.",
  2659. "type": "boolean"
  2660. },
  2661. "minimumSystemVersion": {
  2662. "description": "The minimum version of macOS required for the app to run. Corresponds to `LSMinimumSystemVersion`.",
  2663. "type": [
  2664. "null",
  2665. "string"
  2666. ]
  2667. },
  2668. "notarize": {
  2669. "anyOf": [
  2670. {
  2671. "$ref": "#/definitions/NotarizeOptions"
  2672. },
  2673. {
  2674. "type": [
  2675. "null",
  2676. "boolean"
  2677. ]
  2678. }
  2679. ],
  2680. "description": "Options to use for @electron/notarize (ref: https://github.com/electron/notarize).\nSupports both `legacy` and `notarytool` notarization tools. Use `false` to explicitly disable\n\nNote: You MUST specify `APPLE_ID` and `APPLE_APP_SPECIFIC_PASSWORD` via environment variables to activate notarization step"
  2681. },
  2682. "preAutoEntitlements": {
  2683. "default": true,
  2684. "description": "Whether to enable entitlements automation from @electron/osx-sign.",
  2685. "type": "boolean"
  2686. },
  2687. "protocols": {
  2688. "anyOf": [
  2689. {
  2690. "$ref": "#/definitions/Protocol"
  2691. },
  2692. {
  2693. "items": {
  2694. "$ref": "#/definitions/Protocol"
  2695. },
  2696. "type": "array"
  2697. }
  2698. ],
  2699. "description": "The URL protocol schemes."
  2700. },
  2701. "provisioningProfile": {
  2702. "description": "The path to the provisioning profile to use when signing, absolute or relative to the app root.",
  2703. "type": [
  2704. "null",
  2705. "string"
  2706. ]
  2707. },
  2708. "publish": {
  2709. "anyOf": [
  2710. {
  2711. "$ref": "#/definitions/GithubOptions"
  2712. },
  2713. {
  2714. "$ref": "#/definitions/S3Options"
  2715. },
  2716. {
  2717. "$ref": "#/definitions/SpacesOptions"
  2718. },
  2719. {
  2720. "$ref": "#/definitions/GenericServerOptions"
  2721. },
  2722. {
  2723. "$ref": "#/definitions/CustomPublishOptions"
  2724. },
  2725. {
  2726. "$ref": "#/definitions/KeygenOptions"
  2727. },
  2728. {
  2729. "$ref": "#/definitions/SnapStoreOptions"
  2730. },
  2731. {
  2732. "$ref": "#/definitions/BitbucketOptions"
  2733. },
  2734. {
  2735. "items": {
  2736. "anyOf": [
  2737. {
  2738. "$ref": "#/definitions/GithubOptions"
  2739. },
  2740. {
  2741. "$ref": "#/definitions/S3Options"
  2742. },
  2743. {
  2744. "$ref": "#/definitions/SpacesOptions"
  2745. },
  2746. {
  2747. "$ref": "#/definitions/GenericServerOptions"
  2748. },
  2749. {
  2750. "$ref": "#/definitions/CustomPublishOptions"
  2751. },
  2752. {
  2753. "$ref": "#/definitions/KeygenOptions"
  2754. },
  2755. {
  2756. "$ref": "#/definitions/SnapStoreOptions"
  2757. },
  2758. {
  2759. "$ref": "#/definitions/BitbucketOptions"
  2760. },
  2761. {
  2762. "type": "string"
  2763. }
  2764. ]
  2765. },
  2766. "type": "array"
  2767. },
  2768. {
  2769. "type": [
  2770. "null",
  2771. "string"
  2772. ]
  2773. }
  2774. ]
  2775. },
  2776. "releaseInfo": {
  2777. "$ref": "#/definitions/ReleaseInfo",
  2778. "description": "The release info. Intended for command line usage:\n\n```\n-c.releaseInfo.releaseNotes=\"new features\"\n```"
  2779. },
  2780. "requirements": {
  2781. "description": "Path of [requirements file](https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuide/RequirementLang/RequirementLang.html) used in signing. Not applicable for MAS.",
  2782. "type": [
  2783. "null",
  2784. "string"
  2785. ]
  2786. },
  2787. "signIgnore": {
  2788. "anyOf": [
  2789. {
  2790. "items": {
  2791. "type": "string"
  2792. },
  2793. "type": "array"
  2794. },
  2795. {
  2796. "type": [
  2797. "null",
  2798. "string"
  2799. ]
  2800. }
  2801. ],
  2802. "description": "Regex or an array of regex's that signal skipping signing a file."
  2803. },
  2804. "singleArchFiles": {
  2805. "description": "Minimatch pattern of paths that are allowed to be present in one of the\nASAR files, but not in the other.\n\nThis option has no effect unless building for \"universal\" arch and applies\nonly if `mergeASARs` is `true`.",
  2806. "type": [
  2807. "null",
  2808. "string"
  2809. ]
  2810. },
  2811. "strictVerify": {
  2812. "default": true,
  2813. "description": "Whether to let @electron/osx-sign verify the contents or not.",
  2814. "type": "boolean"
  2815. },
  2816. "target": {
  2817. "anyOf": [
  2818. {
  2819. "$ref": "#/definitions/TargetConfiguration"
  2820. },
  2821. {
  2822. "items": {
  2823. "anyOf": [
  2824. {
  2825. "$ref": "#/definitions/TargetConfiguration"
  2826. },
  2827. {
  2828. "enum": [
  2829. "7z",
  2830. "default",
  2831. "dir",
  2832. "dmg",
  2833. "mas",
  2834. "mas-dev",
  2835. "pkg",
  2836. "tar.bz2",
  2837. "tar.gz",
  2838. "tar.lz",
  2839. "tar.xz",
  2840. "zip"
  2841. ],
  2842. "type": "string"
  2843. }
  2844. ]
  2845. },
  2846. "type": "array"
  2847. },
  2848. {
  2849. "enum": [
  2850. "7z",
  2851. "default",
  2852. "dir",
  2853. "dmg",
  2854. "mas",
  2855. "mas-dev",
  2856. "pkg",
  2857. "tar.bz2",
  2858. "tar.gz",
  2859. "tar.lz",
  2860. "tar.xz",
  2861. "zip"
  2862. ],
  2863. "type": "string"
  2864. },
  2865. {
  2866. "type": "null"
  2867. }
  2868. ],
  2869. "description": "The target package type: list of `default`, `dmg`, `mas`, `mas-dev`, `pkg`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`. Defaults to `default` (`dmg` and `zip` for Squirrel.Mac). Note: Squirrel.Mac auto update mechanism requires both `dmg` and `zip` to be enabled, even when only `dmg` is used. Disabling `zip` will break auto update in `dmg` packages."
  2870. },
  2871. "timestamp": {
  2872. "description": "Specify the URL of the timestamp authority server",
  2873. "type": [
  2874. "null",
  2875. "string"
  2876. ]
  2877. },
  2878. "type": {
  2879. "anyOf": [
  2880. {
  2881. "enum": [
  2882. "development",
  2883. "distribution"
  2884. ],
  2885. "type": "string"
  2886. },
  2887. {
  2888. "type": "null"
  2889. }
  2890. ],
  2891. "default": "distribution",
  2892. "description": "Whether to sign app for development or for distribution."
  2893. },
  2894. "x64ArchFiles": {
  2895. "description": "Minimatch pattern of paths that are allowed to be x64 binaries in both\nASAR files\n\nThis option has no effect unless building for \"universal\" arch and applies\nonly if `mergeASARs` is `true`.",
  2896. "type": [
  2897. "null",
  2898. "string"
  2899. ]
  2900. }
  2901. },
  2902. "type": "object"
  2903. },
  2904. "MasConfiguration": {
  2905. "additionalProperties": false,
  2906. "properties": {
  2907. "appId": {
  2908. "default": "com.electron.${name}",
  2909. "description": "The application id. Used as [CFBundleIdentifier](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070) for MacOS and as\n[Application User Model ID](https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx) for Windows (NSIS target only, Squirrel.Windows not supported). It is strongly recommended that an explicit ID is set.",
  2910. "type": [
  2911. "null",
  2912. "string"
  2913. ]
  2914. },
  2915. "artifactName": {
  2916. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template). Defaults to `${productName}-${version}.${ext}` (some target can have other defaults, see corresponding options).",
  2917. "type": [
  2918. "null",
  2919. "string"
  2920. ]
  2921. },
  2922. "asar": {
  2923. "anyOf": [
  2924. {
  2925. "$ref": "#/definitions/AsarOptions"
  2926. },
  2927. {
  2928. "type": [
  2929. "null",
  2930. "boolean"
  2931. ]
  2932. }
  2933. ],
  2934. "default": true,
  2935. "description": "Whether to package the application's source code into an archive, using [Electron's archive format](http://electron.atom.io/docs/tutorial/application-packaging/).\n\nNode modules, that must be unpacked, will be detected automatically, you don't need to explicitly set [asarUnpack](#configuration-asarUnpack) - please file an issue if this doesn't work."
  2936. },
  2937. "asarUnpack": {
  2938. "anyOf": [
  2939. {
  2940. "items": {
  2941. "type": "string"
  2942. },
  2943. "type": "array"
  2944. },
  2945. {
  2946. "type": [
  2947. "null",
  2948. "string"
  2949. ]
  2950. }
  2951. ],
  2952. "description": "A [glob patterns](/file-patterns) relative to the [app directory](#MetadataDirectories-app), which specifies which files to unpack when creating the [asar](http://electron.atom.io/docs/tutorial/application-packaging/) archive."
  2953. },
  2954. "binaries": {
  2955. "anyOf": [
  2956. {
  2957. "items": {
  2958. "type": "string"
  2959. },
  2960. "type": "array"
  2961. },
  2962. {
  2963. "type": "null"
  2964. }
  2965. ],
  2966. "description": "Paths of any extra binaries that need to be signed."
  2967. },
  2968. "bundleShortVersion": {
  2969. "description": "The `CFBundleShortVersionString`. Do not use it unless you need to.",
  2970. "type": [
  2971. "null",
  2972. "string"
  2973. ]
  2974. },
  2975. "bundleVersion": {
  2976. "description": "The `CFBundleVersion`. Do not use it unless [you need to](https://github.com/electron-userland/electron-builder/issues/565#issuecomment-230678643).",
  2977. "type": [
  2978. "null",
  2979. "string"
  2980. ]
  2981. },
  2982. "category": {
  2983. "description": "The application category type, as shown in the Finder via *View -> Arrange by Application Category* when viewing the Applications directory.\n\nFor example, `\"category\": \"public.app-category.developer-tools\"` will set the application category to *Developer Tools*.\n\nValid values are listed in [Apple's documentation](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW8).",
  2984. "type": [
  2985. "null",
  2986. "string"
  2987. ]
  2988. },
  2989. "compression": {
  2990. "anyOf": [
  2991. {
  2992. "enum": [
  2993. "maximum",
  2994. "normal",
  2995. "store"
  2996. ],
  2997. "type": "string"
  2998. },
  2999. {
  3000. "type": "null"
  3001. }
  3002. ],
  3003. "default": "normal",
  3004. "description": "The compression level. If you want to rapidly test build, `store` can reduce build time significantly. `maximum` doesn't lead to noticeable size difference, but increase build time."
  3005. },
  3006. "cscInstallerKeyPassword": {
  3007. "type": [
  3008. "null",
  3009. "string"
  3010. ]
  3011. },
  3012. "cscInstallerLink": {
  3013. "type": [
  3014. "null",
  3015. "string"
  3016. ]
  3017. },
  3018. "cscKeyPassword": {
  3019. "type": [
  3020. "null",
  3021. "string"
  3022. ]
  3023. },
  3024. "cscLink": {
  3025. "type": [
  3026. "null",
  3027. "string"
  3028. ]
  3029. },
  3030. "darkModeSupport": {
  3031. "default": false,
  3032. "description": "Whether a dark mode is supported. If your app does have a dark mode, you can make your app follow the system-wide dark mode setting.",
  3033. "type": "boolean"
  3034. },
  3035. "defaultArch": {
  3036. "type": "string"
  3037. },
  3038. "detectUpdateChannel": {
  3039. "default": true,
  3040. "description": "Whether to infer update channel from application version pre-release components. e.g. if version `0.12.1-alpha.1`, channel will be set to `alpha`. Otherwise to `latest`.",
  3041. "type": "boolean"
  3042. },
  3043. "electronLanguages": {
  3044. "anyOf": [
  3045. {
  3046. "items": {
  3047. "type": "string"
  3048. },
  3049. "type": "array"
  3050. },
  3051. {
  3052. "type": "string"
  3053. }
  3054. ],
  3055. "description": "The electron locales to keep. By default, all Electron locales used as-is."
  3056. },
  3057. "electronUpdaterCompatibility": {
  3058. "description": "The [electron-updater compatibility](/auto-update#compatibility) semver range.",
  3059. "type": [
  3060. "null",
  3061. "string"
  3062. ]
  3063. },
  3064. "entitlements": {
  3065. "description": "The path to entitlements file for signing the app. `build/entitlements.mas.plist` will be used if exists (it is a recommended way to set).\nSee [this folder in osx-sign's repository](https://github.com/electron/osx-sign/tree/main/entitlements) for examples.\nBe aware that your app may crash if the right entitlements are not set like `com.apple.security.cs.allow-jit` for example on arm64 builds with Electron 20+.\nSee [Signing and Notarizing macOS Builds from the Electron documentation](https://www.electronjs.org/docs/latest/tutorial/code-signing#signing--notarizing-macos-builds) for more information.",
  3066. "type": [
  3067. "null",
  3068. "string"
  3069. ]
  3070. },
  3071. "entitlementsInherit": {
  3072. "description": "The path to child entitlements which inherit the security settings for signing frameworks and bundles of a distribution. `build/entitlements.mas.inherit.plist` will be used if exists (it is a recommended way to set).\nSee [this folder in osx-sign's repository](https://github.com/electron/osx-sign/tree/main/entitlements) for examples.",
  3073. "type": [
  3074. "null",
  3075. "string"
  3076. ]
  3077. },
  3078. "entitlementsLoginHelper": {
  3079. "description": "Path to login helper entitlement file.\nWhen using App Sandbox, the the `com.apple.security.inherit` key that is normally in the inherited entitlements cannot be inherited since the login helper is a standalone executable.\nDefaults to the value provided for `entitlements`. This option only applies when signing with `entitlements` provided.",
  3080. "type": [
  3081. "null",
  3082. "string"
  3083. ]
  3084. },
  3085. "executableName": {
  3086. "description": "The executable name. Defaults to `productName`.",
  3087. "type": [
  3088. "null",
  3089. "string"
  3090. ]
  3091. },
  3092. "extendInfo": {
  3093. "description": "The extra entries for `Info.plist`."
  3094. },
  3095. "extraDistFiles": {
  3096. "anyOf": [
  3097. {
  3098. "items": {
  3099. "type": "string"
  3100. },
  3101. "type": "array"
  3102. },
  3103. {
  3104. "type": [
  3105. "null",
  3106. "string"
  3107. ]
  3108. }
  3109. ],
  3110. "description": "Extra files to put in archive. Not applicable for `tar.*`."
  3111. },
  3112. "extraFiles": {
  3113. "anyOf": [
  3114. {
  3115. "$ref": "#/definitions/FileSet"
  3116. },
  3117. {
  3118. "items": {
  3119. "anyOf": [
  3120. {
  3121. "$ref": "#/definitions/FileSet"
  3122. },
  3123. {
  3124. "type": "string"
  3125. }
  3126. ]
  3127. },
  3128. "type": "array"
  3129. },
  3130. {
  3131. "type": [
  3132. "null",
  3133. "string"
  3134. ]
  3135. }
  3136. ]
  3137. },
  3138. "extraResources": {
  3139. "anyOf": [
  3140. {
  3141. "$ref": "#/definitions/FileSet"
  3142. },
  3143. {
  3144. "items": {
  3145. "anyOf": [
  3146. {
  3147. "$ref": "#/definitions/FileSet"
  3148. },
  3149. {
  3150. "type": "string"
  3151. }
  3152. ]
  3153. },
  3154. "type": "array"
  3155. },
  3156. {
  3157. "type": [
  3158. "null",
  3159. "string"
  3160. ]
  3161. }
  3162. ]
  3163. },
  3164. "fileAssociations": {
  3165. "anyOf": [
  3166. {
  3167. "$ref": "#/definitions/FileAssociation"
  3168. },
  3169. {
  3170. "items": {
  3171. "$ref": "#/definitions/FileAssociation"
  3172. },
  3173. "type": "array"
  3174. }
  3175. ],
  3176. "description": "The file associations."
  3177. },
  3178. "files": {
  3179. "anyOf": [
  3180. {
  3181. "$ref": "#/definitions/FileSet"
  3182. },
  3183. {
  3184. "items": {
  3185. "anyOf": [
  3186. {
  3187. "$ref": "#/definitions/FileSet"
  3188. },
  3189. {
  3190. "type": "string"
  3191. }
  3192. ]
  3193. },
  3194. "type": "array"
  3195. },
  3196. {
  3197. "type": [
  3198. "null",
  3199. "string"
  3200. ]
  3201. }
  3202. ]
  3203. },
  3204. "forceCodeSigning": {
  3205. "description": "Whether to fail if app will be not code signed.",
  3206. "type": "boolean"
  3207. },
  3208. "gatekeeperAssess": {
  3209. "default": false,
  3210. "description": "Whether to let @electron/osx-sign validate the signing or not.",
  3211. "type": "boolean"
  3212. },
  3213. "generateUpdatesFilesForAllChannels": {
  3214. "default": false,
  3215. "description": "Please see [Building and Releasing using Channels](https://github.com/electron-userland/electron-builder/issues/1182#issuecomment-324947139).",
  3216. "type": "boolean"
  3217. },
  3218. "hardenedRuntime": {
  3219. "default": true,
  3220. "description": "Whether your app has to be signed with hardened runtime.",
  3221. "type": "boolean"
  3222. },
  3223. "helperBundleId": {
  3224. "default": "${appBundleIdentifier}.helper",
  3225. "description": "The bundle identifier to use in the application helper's plist.",
  3226. "type": [
  3227. "null",
  3228. "string"
  3229. ]
  3230. },
  3231. "helperEHBundleId": {
  3232. "default": "${appBundleIdentifier}.helper.EH",
  3233. "description": "The bundle identifier to use in the EH helper's plist.",
  3234. "type": [
  3235. "null",
  3236. "string"
  3237. ]
  3238. },
  3239. "helperGPUBundleId": {
  3240. "default": "${appBundleIdentifier}.helper.GPU",
  3241. "description": "The bundle identifier to use in the GPU helper's plist.",
  3242. "type": [
  3243. "null",
  3244. "string"
  3245. ]
  3246. },
  3247. "helperNPBundleId": {
  3248. "default": "${appBundleIdentifier}.helper.NP",
  3249. "description": "The bundle identifier to use in the NP helper's plist.",
  3250. "type": [
  3251. "null",
  3252. "string"
  3253. ]
  3254. },
  3255. "helperPluginBundleId": {
  3256. "default": "${appBundleIdentifier}.helper.Plugin",
  3257. "description": "The bundle identifier to use in the Plugin helper's plist.",
  3258. "type": [
  3259. "null",
  3260. "string"
  3261. ]
  3262. },
  3263. "helperRendererBundleId": {
  3264. "default": "${appBundleIdentifier}.helper.Renderer",
  3265. "description": "The bundle identifier to use in the Renderer helper's plist.",
  3266. "type": [
  3267. "null",
  3268. "string"
  3269. ]
  3270. },
  3271. "icon": {
  3272. "default": "build/icon.icns",
  3273. "description": "The path to application icon.",
  3274. "type": [
  3275. "null",
  3276. "string"
  3277. ]
  3278. },
  3279. "identity": {
  3280. "description": "The name of certificate to use when signing. Consider using environment variables [CSC_LINK or CSC_NAME](/code-signing) instead of specifying this option.\nMAS installer identity is specified in the [mas](/configuration/mas).",
  3281. "type": [
  3282. "null",
  3283. "string"
  3284. ]
  3285. },
  3286. "mergeASARs": {
  3287. "default": true,
  3288. "description": "Whether to merge ASAR files for different architectures or not.\n\nThis option has no effect unless building for \"universal\" arch.",
  3289. "type": "boolean"
  3290. },
  3291. "minimumSystemVersion": {
  3292. "description": "The minimum version of macOS required for the app to run. Corresponds to `LSMinimumSystemVersion`.",
  3293. "type": [
  3294. "null",
  3295. "string"
  3296. ]
  3297. },
  3298. "notarize": {
  3299. "anyOf": [
  3300. {
  3301. "$ref": "#/definitions/NotarizeOptions"
  3302. },
  3303. {
  3304. "type": [
  3305. "null",
  3306. "boolean"
  3307. ]
  3308. }
  3309. ],
  3310. "description": "Options to use for @electron/notarize (ref: https://github.com/electron/notarize).\nSupports both `legacy` and `notarytool` notarization tools. Use `false` to explicitly disable\n\nNote: You MUST specify `APPLE_ID` and `APPLE_APP_SPECIFIC_PASSWORD` via environment variables to activate notarization step"
  3311. },
  3312. "preAutoEntitlements": {
  3313. "default": true,
  3314. "description": "Whether to enable entitlements automation from @electron/osx-sign.",
  3315. "type": "boolean"
  3316. },
  3317. "protocols": {
  3318. "anyOf": [
  3319. {
  3320. "$ref": "#/definitions/Protocol"
  3321. },
  3322. {
  3323. "items": {
  3324. "$ref": "#/definitions/Protocol"
  3325. },
  3326. "type": "array"
  3327. }
  3328. ],
  3329. "description": "The URL protocol schemes."
  3330. },
  3331. "provisioningProfile": {
  3332. "description": "The path to the provisioning profile to use when signing, absolute or relative to the app root.",
  3333. "type": [
  3334. "null",
  3335. "string"
  3336. ]
  3337. },
  3338. "publish": {
  3339. "anyOf": [
  3340. {
  3341. "$ref": "#/definitions/GithubOptions"
  3342. },
  3343. {
  3344. "$ref": "#/definitions/S3Options"
  3345. },
  3346. {
  3347. "$ref": "#/definitions/SpacesOptions"
  3348. },
  3349. {
  3350. "$ref": "#/definitions/GenericServerOptions"
  3351. },
  3352. {
  3353. "$ref": "#/definitions/CustomPublishOptions"
  3354. },
  3355. {
  3356. "$ref": "#/definitions/KeygenOptions"
  3357. },
  3358. {
  3359. "$ref": "#/definitions/SnapStoreOptions"
  3360. },
  3361. {
  3362. "$ref": "#/definitions/BitbucketOptions"
  3363. },
  3364. {
  3365. "items": {
  3366. "anyOf": [
  3367. {
  3368. "$ref": "#/definitions/GithubOptions"
  3369. },
  3370. {
  3371. "$ref": "#/definitions/S3Options"
  3372. },
  3373. {
  3374. "$ref": "#/definitions/SpacesOptions"
  3375. },
  3376. {
  3377. "$ref": "#/definitions/GenericServerOptions"
  3378. },
  3379. {
  3380. "$ref": "#/definitions/CustomPublishOptions"
  3381. },
  3382. {
  3383. "$ref": "#/definitions/KeygenOptions"
  3384. },
  3385. {
  3386. "$ref": "#/definitions/SnapStoreOptions"
  3387. },
  3388. {
  3389. "$ref": "#/definitions/BitbucketOptions"
  3390. },
  3391. {
  3392. "type": "string"
  3393. }
  3394. ]
  3395. },
  3396. "type": "array"
  3397. },
  3398. {
  3399. "type": [
  3400. "null",
  3401. "string"
  3402. ]
  3403. }
  3404. ]
  3405. },
  3406. "releaseInfo": {
  3407. "$ref": "#/definitions/ReleaseInfo",
  3408. "description": "The release info. Intended for command line usage:\n\n```\n-c.releaseInfo.releaseNotes=\"new features\"\n```"
  3409. },
  3410. "requirements": {
  3411. "description": "Path of [requirements file](https://developer.apple.com/library/mac/documentation/Security/Conceptual/CodeSigningGuide/RequirementLang/RequirementLang.html) used in signing. Not applicable for MAS.",
  3412. "type": [
  3413. "null",
  3414. "string"
  3415. ]
  3416. },
  3417. "signIgnore": {
  3418. "anyOf": [
  3419. {
  3420. "items": {
  3421. "type": "string"
  3422. },
  3423. "type": "array"
  3424. },
  3425. {
  3426. "type": [
  3427. "null",
  3428. "string"
  3429. ]
  3430. }
  3431. ],
  3432. "description": "Regex or an array of regex's that signal skipping signing a file."
  3433. },
  3434. "singleArchFiles": {
  3435. "description": "Minimatch pattern of paths that are allowed to be present in one of the\nASAR files, but not in the other.\n\nThis option has no effect unless building for \"universal\" arch and applies\nonly if `mergeASARs` is `true`.",
  3436. "type": [
  3437. "null",
  3438. "string"
  3439. ]
  3440. },
  3441. "strictVerify": {
  3442. "default": true,
  3443. "description": "Whether to let @electron/osx-sign verify the contents or not.",
  3444. "type": "boolean"
  3445. },
  3446. "target": {
  3447. "anyOf": [
  3448. {
  3449. "$ref": "#/definitions/TargetConfiguration"
  3450. },
  3451. {
  3452. "items": {
  3453. "anyOf": [
  3454. {
  3455. "$ref": "#/definitions/TargetConfiguration"
  3456. },
  3457. {
  3458. "enum": [
  3459. "7z",
  3460. "default",
  3461. "dir",
  3462. "dmg",
  3463. "mas",
  3464. "mas-dev",
  3465. "pkg",
  3466. "tar.bz2",
  3467. "tar.gz",
  3468. "tar.lz",
  3469. "tar.xz",
  3470. "zip"
  3471. ],
  3472. "type": "string"
  3473. }
  3474. ]
  3475. },
  3476. "type": "array"
  3477. },
  3478. {
  3479. "enum": [
  3480. "7z",
  3481. "default",
  3482. "dir",
  3483. "dmg",
  3484. "mas",
  3485. "mas-dev",
  3486. "pkg",
  3487. "tar.bz2",
  3488. "tar.gz",
  3489. "tar.lz",
  3490. "tar.xz",
  3491. "zip"
  3492. ],
  3493. "type": "string"
  3494. },
  3495. {
  3496. "type": "null"
  3497. }
  3498. ],
  3499. "description": "The target package type: list of `default`, `dmg`, `mas`, `mas-dev`, `pkg`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`. Defaults to `default` (`dmg` and `zip` for Squirrel.Mac). Note: Squirrel.Mac auto update mechanism requires both `dmg` and `zip` to be enabled, even when only `dmg` is used. Disabling `zip` will break auto update in `dmg` packages."
  3500. },
  3501. "timestamp": {
  3502. "description": "Specify the URL of the timestamp authority server",
  3503. "type": [
  3504. "null",
  3505. "string"
  3506. ]
  3507. },
  3508. "type": {
  3509. "anyOf": [
  3510. {
  3511. "enum": [
  3512. "development",
  3513. "distribution"
  3514. ],
  3515. "type": "string"
  3516. },
  3517. {
  3518. "type": "null"
  3519. }
  3520. ],
  3521. "default": "distribution",
  3522. "description": "Whether to sign app for development or for distribution."
  3523. },
  3524. "x64ArchFiles": {
  3525. "description": "Minimatch pattern of paths that are allowed to be x64 binaries in both\nASAR files\n\nThis option has no effect unless building for \"universal\" arch and applies\nonly if `mergeASARs` is `true`.",
  3526. "type": [
  3527. "null",
  3528. "string"
  3529. ]
  3530. }
  3531. },
  3532. "type": "object"
  3533. },
  3534. "MetadataDirectories": {
  3535. "additionalProperties": false,
  3536. "properties": {
  3537. "app": {
  3538. "description": "The application directory (containing the application package.json), defaults to `app`, `www` or working directory.",
  3539. "type": [
  3540. "null",
  3541. "string"
  3542. ]
  3543. },
  3544. "buildResources": {
  3545. "default": "build",
  3546. "description": "The path to build resources.\n\nPlease note — build resources are not packed into the app. If you need to use some files, e.g. as tray icon, please include required files explicitly: `\"files\": [\"**\\/*\", \"build/icon.*\"]`",
  3547. "type": [
  3548. "null",
  3549. "string"
  3550. ]
  3551. },
  3552. "output": {
  3553. "default": "dist",
  3554. "description": "The output directory. [File macros](/file-patterns#file-macros) are supported.",
  3555. "type": [
  3556. "null",
  3557. "string"
  3558. ]
  3559. }
  3560. },
  3561. "type": "object"
  3562. },
  3563. "MsiOptions": {
  3564. "additionalProperties": false,
  3565. "properties": {
  3566. "additionalWixArgs": {
  3567. "anyOf": [
  3568. {
  3569. "items": {
  3570. "type": "string"
  3571. },
  3572. "type": "array"
  3573. },
  3574. {
  3575. "type": "null"
  3576. }
  3577. ],
  3578. "description": "Any additional arguments to be passed to the WiX installer compiler, such as `[\"-ext\", \"WixUtilExtension\"]`"
  3579. },
  3580. "artifactName": {
  3581. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  3582. "type": [
  3583. "null",
  3584. "string"
  3585. ]
  3586. },
  3587. "createDesktopShortcut": {
  3588. "default": true,
  3589. "description": "Whether to create desktop shortcut. Set to `always` if to recreate also on reinstall (even if removed by user).",
  3590. "enum": [
  3591. "always",
  3592. false,
  3593. true
  3594. ]
  3595. },
  3596. "createStartMenuShortcut": {
  3597. "default": true,
  3598. "description": "Whether to create start menu shortcut.",
  3599. "type": "boolean"
  3600. },
  3601. "menuCategory": {
  3602. "default": false,
  3603. "description": "Whether to create submenu for start menu shortcut and program files directory. If `true`, company name will be used. Or string value.",
  3604. "type": [
  3605. "string",
  3606. "boolean"
  3607. ]
  3608. },
  3609. "oneClick": {
  3610. "default": true,
  3611. "description": "One-click installation.",
  3612. "type": "boolean"
  3613. },
  3614. "perMachine": {
  3615. "default": false,
  3616. "description": "Whether to install per all users (per-machine).",
  3617. "type": "boolean"
  3618. },
  3619. "publish": {
  3620. "anyOf": [
  3621. {
  3622. "$ref": "#/definitions/GithubOptions"
  3623. },
  3624. {
  3625. "$ref": "#/definitions/S3Options"
  3626. },
  3627. {
  3628. "$ref": "#/definitions/SpacesOptions"
  3629. },
  3630. {
  3631. "$ref": "#/definitions/GenericServerOptions"
  3632. },
  3633. {
  3634. "$ref": "#/definitions/CustomPublishOptions"
  3635. },
  3636. {
  3637. "$ref": "#/definitions/KeygenOptions"
  3638. },
  3639. {
  3640. "$ref": "#/definitions/SnapStoreOptions"
  3641. },
  3642. {
  3643. "$ref": "#/definitions/BitbucketOptions"
  3644. },
  3645. {
  3646. "items": {
  3647. "anyOf": [
  3648. {
  3649. "$ref": "#/definitions/GithubOptions"
  3650. },
  3651. {
  3652. "$ref": "#/definitions/S3Options"
  3653. },
  3654. {
  3655. "$ref": "#/definitions/SpacesOptions"
  3656. },
  3657. {
  3658. "$ref": "#/definitions/GenericServerOptions"
  3659. },
  3660. {
  3661. "$ref": "#/definitions/CustomPublishOptions"
  3662. },
  3663. {
  3664. "$ref": "#/definitions/KeygenOptions"
  3665. },
  3666. {
  3667. "$ref": "#/definitions/SnapStoreOptions"
  3668. },
  3669. {
  3670. "$ref": "#/definitions/BitbucketOptions"
  3671. },
  3672. {
  3673. "type": "string"
  3674. }
  3675. ]
  3676. },
  3677. "type": "array"
  3678. },
  3679. {
  3680. "type": [
  3681. "null",
  3682. "string"
  3683. ]
  3684. }
  3685. ]
  3686. },
  3687. "runAfterFinish": {
  3688. "default": true,
  3689. "description": "Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.",
  3690. "type": "boolean"
  3691. },
  3692. "shortcutName": {
  3693. "description": "The name that will be used for all shortcuts. Defaults to the application name.",
  3694. "type": [
  3695. "null",
  3696. "string"
  3697. ]
  3698. },
  3699. "upgradeCode": {
  3700. "description": "The [upgrade code](https://msdn.microsoft.com/en-us/library/windows/desktop/aa372375(v=vs.85).aspx). Optional, by default generated using app id.",
  3701. "type": [
  3702. "null",
  3703. "string"
  3704. ]
  3705. },
  3706. "warningsAsErrors": {
  3707. "default": true,
  3708. "description": "If `warningsAsErrors` is `true` (default): treat warnings as errors. If `warningsAsErrors` is `false`: allow warnings.",
  3709. "type": "boolean"
  3710. }
  3711. },
  3712. "type": "object"
  3713. },
  3714. "MsiWrappedOptions": {
  3715. "additionalProperties": false,
  3716. "properties": {
  3717. "additionalWixArgs": {
  3718. "anyOf": [
  3719. {
  3720. "items": {
  3721. "type": "string"
  3722. },
  3723. "type": "array"
  3724. },
  3725. {
  3726. "type": "null"
  3727. }
  3728. ],
  3729. "description": "Any additional arguments to be passed to the WiX installer compiler, such as `[\"-ext\", \"WixUtilExtension\"]`"
  3730. },
  3731. "artifactName": {
  3732. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  3733. "type": [
  3734. "null",
  3735. "string"
  3736. ]
  3737. },
  3738. "createDesktopShortcut": {
  3739. "default": true,
  3740. "description": "Whether to create desktop shortcut. Set to `always` if to recreate also on reinstall (even if removed by user).",
  3741. "enum": [
  3742. "always",
  3743. false,
  3744. true
  3745. ]
  3746. },
  3747. "createStartMenuShortcut": {
  3748. "default": true,
  3749. "description": "Whether to create start menu shortcut.",
  3750. "type": "boolean"
  3751. },
  3752. "impersonate": {
  3753. "default": false,
  3754. "description": "Determines if the wrapped installer should be executed with impersonation",
  3755. "type": "boolean"
  3756. },
  3757. "menuCategory": {
  3758. "default": false,
  3759. "description": "Whether to create submenu for start menu shortcut and program files directory. If `true`, company name will be used. Or string value.",
  3760. "type": [
  3761. "string",
  3762. "boolean"
  3763. ]
  3764. },
  3765. "oneClick": {
  3766. "type": "boolean"
  3767. },
  3768. "perMachine": {
  3769. "default": false,
  3770. "description": "Whether to install per all users (per-machine).",
  3771. "type": "boolean"
  3772. },
  3773. "publish": {
  3774. "anyOf": [
  3775. {
  3776. "$ref": "#/definitions/GithubOptions"
  3777. },
  3778. {
  3779. "$ref": "#/definitions/S3Options"
  3780. },
  3781. {
  3782. "$ref": "#/definitions/SpacesOptions"
  3783. },
  3784. {
  3785. "$ref": "#/definitions/GenericServerOptions"
  3786. },
  3787. {
  3788. "$ref": "#/definitions/CustomPublishOptions"
  3789. },
  3790. {
  3791. "$ref": "#/definitions/KeygenOptions"
  3792. },
  3793. {
  3794. "$ref": "#/definitions/SnapStoreOptions"
  3795. },
  3796. {
  3797. "$ref": "#/definitions/BitbucketOptions"
  3798. },
  3799. {
  3800. "items": {
  3801. "anyOf": [
  3802. {
  3803. "$ref": "#/definitions/GithubOptions"
  3804. },
  3805. {
  3806. "$ref": "#/definitions/S3Options"
  3807. },
  3808. {
  3809. "$ref": "#/definitions/SpacesOptions"
  3810. },
  3811. {
  3812. "$ref": "#/definitions/GenericServerOptions"
  3813. },
  3814. {
  3815. "$ref": "#/definitions/CustomPublishOptions"
  3816. },
  3817. {
  3818. "$ref": "#/definitions/KeygenOptions"
  3819. },
  3820. {
  3821. "$ref": "#/definitions/SnapStoreOptions"
  3822. },
  3823. {
  3824. "$ref": "#/definitions/BitbucketOptions"
  3825. },
  3826. {
  3827. "type": "string"
  3828. }
  3829. ]
  3830. },
  3831. "type": "array"
  3832. },
  3833. {
  3834. "type": [
  3835. "null",
  3836. "string"
  3837. ]
  3838. }
  3839. ]
  3840. },
  3841. "runAfterFinish": {
  3842. "default": true,
  3843. "description": "Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.",
  3844. "type": "boolean"
  3845. },
  3846. "shortcutName": {
  3847. "description": "The name that will be used for all shortcuts. Defaults to the application name.",
  3848. "type": [
  3849. "null",
  3850. "string"
  3851. ]
  3852. },
  3853. "upgradeCode": {
  3854. "description": "The [upgrade code](https://msdn.microsoft.com/en-us/library/windows/desktop/aa372375(v=vs.85).aspx). Optional, by default generated using app id.",
  3855. "type": [
  3856. "null",
  3857. "string"
  3858. ]
  3859. },
  3860. "warningsAsErrors": {
  3861. "default": true,
  3862. "description": "If `warningsAsErrors` is `true` (default): treat warnings as errors. If `warningsAsErrors` is `false`: allow warnings.",
  3863. "type": "boolean"
  3864. },
  3865. "wrappedInstallerArgs": {
  3866. "description": "Extra arguments to provide to the wrapped installer (ie: /S for silent install)",
  3867. "type": [
  3868. "null",
  3869. "string"
  3870. ]
  3871. }
  3872. },
  3873. "type": "object"
  3874. },
  3875. "NotarizeOptions": {
  3876. "additionalProperties": false,
  3877. "properties": {
  3878. "appBundleId": {
  3879. "description": "The app bundle identifier your Electron app is using. E.g. com.github.electron. Useful if notarization ID differs from app ID (unlikely).\nOnly used by `legacy` notarization tool",
  3880. "type": [
  3881. "null",
  3882. "string"
  3883. ]
  3884. },
  3885. "ascProvider": {
  3886. "description": "Your Team Short Name. Only used by `legacy` notarization tool",
  3887. "type": [
  3888. "null",
  3889. "string"
  3890. ]
  3891. },
  3892. "teamId": {
  3893. "description": "The team ID you want to notarize under. Only needed if using `notarytool`",
  3894. "type": [
  3895. "null",
  3896. "string"
  3897. ]
  3898. }
  3899. },
  3900. "type": "object"
  3901. },
  3902. "NsisOptions": {
  3903. "additionalProperties": false,
  3904. "properties": {
  3905. "allowElevation": {
  3906. "default": true,
  3907. "description": "*assisted installer only.* Allow requesting for elevation. If false, user will have to restart installer with elevated permissions.",
  3908. "type": "boolean"
  3909. },
  3910. "allowToChangeInstallationDirectory": {
  3911. "default": false,
  3912. "description": "*assisted installer only.* Whether to allow user to change installation directory.",
  3913. "type": "boolean"
  3914. },
  3915. "artifactName": {
  3916. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template). Defaults to `${productName} Setup ${version}.${ext}`.",
  3917. "type": [
  3918. "null",
  3919. "string"
  3920. ]
  3921. },
  3922. "createDesktopShortcut": {
  3923. "default": true,
  3924. "description": "Whether to create desktop shortcut. Set to `always` if to recreate also on reinstall (even if removed by user).",
  3925. "enum": [
  3926. "always",
  3927. false,
  3928. true
  3929. ]
  3930. },
  3931. "createStartMenuShortcut": {
  3932. "default": true,
  3933. "description": "Whether to create start menu shortcut.",
  3934. "type": "boolean"
  3935. },
  3936. "customNsisBinary": {
  3937. "anyOf": [
  3938. {
  3939. "$ref": "#/definitions/CustomNsisBinary"
  3940. },
  3941. {
  3942. "type": "null"
  3943. }
  3944. ],
  3945. "description": "Allows you to provide your own `makensis`, such as one with support for debug logging via LogSet and LogText. (Logging also requires option `debugLogging = true`)"
  3946. },
  3947. "deleteAppDataOnUninstall": {
  3948. "default": false,
  3949. "description": "*one-click installer only.* Whether to delete app data on uninstall.",
  3950. "type": "boolean"
  3951. },
  3952. "differentialPackage": {
  3953. "type": "boolean"
  3954. },
  3955. "displayLanguageSelector": {
  3956. "default": false,
  3957. "description": "Whether to display a language selection dialog. Not recommended (by default will be detected using OS language).",
  3958. "type": "boolean"
  3959. },
  3960. "guid": {
  3961. "description": "See [GUID vs Application Name](../configuration/nsis#guid-vs-application-name).",
  3962. "type": [
  3963. "null",
  3964. "string"
  3965. ]
  3966. },
  3967. "include": {
  3968. "description": "The path to NSIS include script to customize installer. Defaults to `build/installer.nsh`. See [Custom NSIS script](#custom-nsis-script).",
  3969. "type": [
  3970. "null",
  3971. "string"
  3972. ]
  3973. },
  3974. "installerHeader": {
  3975. "default": "build/installerHeader.bmp",
  3976. "description": "*assisted installer only.* `MUI_HEADERIMAGE`, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.",
  3977. "type": [
  3978. "null",
  3979. "string"
  3980. ]
  3981. },
  3982. "installerHeaderIcon": {
  3983. "description": "*one-click installer only.* The path to header icon (above the progress bar), relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.\nDefaults to `build/installerHeaderIcon.ico` or application icon.",
  3984. "type": [
  3985. "null",
  3986. "string"
  3987. ]
  3988. },
  3989. "installerIcon": {
  3990. "description": "The path to installer icon, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.\nDefaults to `build/installerIcon.ico` or application icon.",
  3991. "type": [
  3992. "null",
  3993. "string"
  3994. ]
  3995. },
  3996. "installerLanguages": {
  3997. "anyOf": [
  3998. {
  3999. "items": {
  4000. "type": "string"
  4001. },
  4002. "type": "array"
  4003. },
  4004. {
  4005. "type": [
  4006. "null",
  4007. "string"
  4008. ]
  4009. }
  4010. ],
  4011. "description": "The installer languages (e.g. `en_US`, `de_DE`). Change only if you understand what do you do and for what."
  4012. },
  4013. "installerSidebar": {
  4014. "description": "*assisted installer only.* `MUI_WELCOMEFINISHPAGE_BITMAP`, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.\nDefaults to `build/installerSidebar.bmp` or `${NSISDIR}\\\\Contrib\\\\Graphics\\\\Wizard\\\\nsis3-metro.bmp`. Image size 164 × 314 pixels.",
  4015. "type": [
  4016. "null",
  4017. "string"
  4018. ]
  4019. },
  4020. "language": {
  4021. "description": "[LCID Dec](https://msdn.microsoft.com/en-au/goglobal/bb964664.aspx), defaults to `1033`(`English - United States`).",
  4022. "type": [
  4023. "null",
  4024. "string"
  4025. ]
  4026. },
  4027. "license": {
  4028. "description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants). In addition to `txt`, `rtf` and `html` supported (don't forget to use `target=\"_blank\"` for links).\n\nMultiple license files in different languages are supported — use lang postfix (e.g. `_de`, `_ru`). For example, create files `license_de.txt` and `license_en.txt` in the build resources.\nIf OS language is german, `license_de.txt` will be displayed. See map of [language code to name](https://github.com/meikidd/iso-639-1/blob/master/src/data.js).\n\nAppropriate license file will be selected by user OS language.",
  4029. "type": [
  4030. "null",
  4031. "string"
  4032. ]
  4033. },
  4034. "menuCategory": {
  4035. "default": false,
  4036. "description": "Whether to create submenu for start menu shortcut and program files directory. If `true`, company name will be used. Or string value.",
  4037. "type": [
  4038. "string",
  4039. "boolean"
  4040. ]
  4041. },
  4042. "multiLanguageInstaller": {
  4043. "description": "Whether to create multi-language installer. Defaults to `unicode` option value.",
  4044. "type": "boolean"
  4045. },
  4046. "oneClick": {
  4047. "default": true,
  4048. "description": "Whether to create one-click installer or assisted.",
  4049. "type": "boolean"
  4050. },
  4051. "packElevateHelper": {
  4052. "default": true,
  4053. "description": "Whether to pack the elevate executable (required for electron-updater if per-machine installer used or can be used in the future). Ignored if `perMachine` is set to `true`.",
  4054. "type": "boolean"
  4055. },
  4056. "perMachine": {
  4057. "default": false,
  4058. "description": "Whether to show install mode installer page (choice per-machine or per-user) for assisted installer. Or whether installation always per all users (per-machine).\n\nIf `oneClick` is `true` (default): Whether to install per all users (per-machine).\n\nIf `oneClick` is `false` and `perMachine` is `true`: no install mode installer page, always install per-machine.\n\nIf `oneClick` is `false` and `perMachine` is `false` (default): install mode installer page.",
  4059. "type": "boolean"
  4060. },
  4061. "preCompressedFileExtensions": {
  4062. "anyOf": [
  4063. {
  4064. "items": {
  4065. "type": "string"
  4066. },
  4067. "type": "array"
  4068. },
  4069. {
  4070. "type": [
  4071. "null",
  4072. "string"
  4073. ]
  4074. }
  4075. ],
  4076. "default": [
  4077. ".avi",
  4078. ".mov",
  4079. ".m4v",
  4080. ".mp4",
  4081. ".m4p",
  4082. ".qt",
  4083. ".mkv",
  4084. ".webm",
  4085. ".vmdk"
  4086. ],
  4087. "description": "The file extension of files that will be not compressed. Applicable only for `extraResources` and `extraFiles` files."
  4088. },
  4089. "publish": {
  4090. "anyOf": [
  4091. {
  4092. "$ref": "#/definitions/GithubOptions"
  4093. },
  4094. {
  4095. "$ref": "#/definitions/S3Options"
  4096. },
  4097. {
  4098. "$ref": "#/definitions/SpacesOptions"
  4099. },
  4100. {
  4101. "$ref": "#/definitions/GenericServerOptions"
  4102. },
  4103. {
  4104. "$ref": "#/definitions/CustomPublishOptions"
  4105. },
  4106. {
  4107. "$ref": "#/definitions/KeygenOptions"
  4108. },
  4109. {
  4110. "$ref": "#/definitions/SnapStoreOptions"
  4111. },
  4112. {
  4113. "$ref": "#/definitions/BitbucketOptions"
  4114. },
  4115. {
  4116. "items": {
  4117. "anyOf": [
  4118. {
  4119. "$ref": "#/definitions/GithubOptions"
  4120. },
  4121. {
  4122. "$ref": "#/definitions/S3Options"
  4123. },
  4124. {
  4125. "$ref": "#/definitions/SpacesOptions"
  4126. },
  4127. {
  4128. "$ref": "#/definitions/GenericServerOptions"
  4129. },
  4130. {
  4131. "$ref": "#/definitions/CustomPublishOptions"
  4132. },
  4133. {
  4134. "$ref": "#/definitions/KeygenOptions"
  4135. },
  4136. {
  4137. "$ref": "#/definitions/SnapStoreOptions"
  4138. },
  4139. {
  4140. "$ref": "#/definitions/BitbucketOptions"
  4141. },
  4142. {
  4143. "type": "string"
  4144. }
  4145. ]
  4146. },
  4147. "type": "array"
  4148. },
  4149. {
  4150. "type": [
  4151. "null",
  4152. "string"
  4153. ]
  4154. }
  4155. ]
  4156. },
  4157. "removeDefaultUninstallWelcomePage": {
  4158. "default": false,
  4159. "description": "*assisted installer only.* remove the default uninstall welcome page.",
  4160. "type": "boolean"
  4161. },
  4162. "runAfterFinish": {
  4163. "default": true,
  4164. "description": "Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.",
  4165. "type": "boolean"
  4166. },
  4167. "script": {
  4168. "description": "The path to NSIS script to customize installer. Defaults to `build/installer.nsi`. See [Custom NSIS script](#custom-nsis-script).",
  4169. "type": [
  4170. "null",
  4171. "string"
  4172. ]
  4173. },
  4174. "shortcutName": {
  4175. "description": "The name that will be used for all shortcuts. Defaults to the application name.",
  4176. "type": [
  4177. "null",
  4178. "string"
  4179. ]
  4180. },
  4181. "unicode": {
  4182. "default": true,
  4183. "description": "Whether to create [Unicode installer](http://nsis.sourceforge.net/Docs/Chapter1.html#intro-unicode).",
  4184. "type": "boolean"
  4185. },
  4186. "uninstallDisplayName": {
  4187. "default": "${productName} ${version}",
  4188. "description": "The uninstaller display name in the control panel.",
  4189. "type": "string"
  4190. },
  4191. "uninstallerIcon": {
  4192. "description": "The path to uninstaller icon, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.\nDefaults to `build/uninstallerIcon.ico` or application icon.",
  4193. "type": [
  4194. "null",
  4195. "string"
  4196. ]
  4197. },
  4198. "uninstallerSidebar": {
  4199. "description": "*assisted installer only.* `MUI_UNWELCOMEFINISHPAGE_BITMAP`, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.\nDefaults to `installerSidebar` option or `build/uninstallerSidebar.bmp` or `build/installerSidebar.bmp` or `${NSISDIR}\\\\Contrib\\\\Graphics\\\\Wizard\\\\nsis3-metro.bmp`",
  4200. "type": [
  4201. "null",
  4202. "string"
  4203. ]
  4204. },
  4205. "useZip": {
  4206. "default": false,
  4207. "type": "boolean"
  4208. },
  4209. "warningsAsErrors": {
  4210. "default": true,
  4211. "description": "If `warningsAsErrors` is `true` (default): NSIS will treat warnings as errors. If `warningsAsErrors` is `false`: NSIS will allow warnings.",
  4212. "type": "boolean"
  4213. }
  4214. },
  4215. "type": "object"
  4216. },
  4217. "NsisWebOptions": {
  4218. "additionalProperties": false,
  4219. "description": "Web Installer options.",
  4220. "properties": {
  4221. "allowElevation": {
  4222. "default": true,
  4223. "description": "*assisted installer only.* Allow requesting for elevation. If false, user will have to restart installer with elevated permissions.",
  4224. "type": "boolean"
  4225. },
  4226. "allowToChangeInstallationDirectory": {
  4227. "default": false,
  4228. "description": "*assisted installer only.* Whether to allow user to change installation directory.",
  4229. "type": "boolean"
  4230. },
  4231. "appPackageUrl": {
  4232. "description": "The application package download URL. Optional — by default computed using publish configuration.\n\nURL like `https://example.com/download/latest` allows web installer to be version independent (installer will download latest application package).\nPlease note — it is [full URL](https://github.com/electron-userland/electron-builder/issues/1810#issuecomment-317650878).\n\nCustom `X-Arch` http header is set to `32` or `64`.",
  4233. "type": [
  4234. "null",
  4235. "string"
  4236. ]
  4237. },
  4238. "artifactName": {
  4239. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template). Defaults to `${productName} Web Setup ${version}.${ext}`.",
  4240. "type": [
  4241. "null",
  4242. "string"
  4243. ]
  4244. },
  4245. "createDesktopShortcut": {
  4246. "default": true,
  4247. "description": "Whether to create desktop shortcut. Set to `always` if to recreate also on reinstall (even if removed by user).",
  4248. "enum": [
  4249. "always",
  4250. false,
  4251. true
  4252. ]
  4253. },
  4254. "createStartMenuShortcut": {
  4255. "default": true,
  4256. "description": "Whether to create start menu shortcut.",
  4257. "type": "boolean"
  4258. },
  4259. "customNsisBinary": {
  4260. "anyOf": [
  4261. {
  4262. "$ref": "#/definitions/CustomNsisBinary"
  4263. },
  4264. {
  4265. "type": "null"
  4266. }
  4267. ],
  4268. "description": "Allows you to provide your own `makensis`, such as one with support for debug logging via LogSet and LogText. (Logging also requires option `debugLogging = true`)"
  4269. },
  4270. "deleteAppDataOnUninstall": {
  4271. "default": false,
  4272. "description": "*one-click installer only.* Whether to delete app data on uninstall.",
  4273. "type": "boolean"
  4274. },
  4275. "differentialPackage": {
  4276. "type": "boolean"
  4277. },
  4278. "displayLanguageSelector": {
  4279. "default": false,
  4280. "description": "Whether to display a language selection dialog. Not recommended (by default will be detected using OS language).",
  4281. "type": "boolean"
  4282. },
  4283. "guid": {
  4284. "description": "See [GUID vs Application Name](../configuration/nsis#guid-vs-application-name).",
  4285. "type": [
  4286. "null",
  4287. "string"
  4288. ]
  4289. },
  4290. "include": {
  4291. "description": "The path to NSIS include script to customize installer. Defaults to `build/installer.nsh`. See [Custom NSIS script](#custom-nsis-script).",
  4292. "type": [
  4293. "null",
  4294. "string"
  4295. ]
  4296. },
  4297. "installerHeader": {
  4298. "default": "build/installerHeader.bmp",
  4299. "description": "*assisted installer only.* `MUI_HEADERIMAGE`, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.",
  4300. "type": [
  4301. "null",
  4302. "string"
  4303. ]
  4304. },
  4305. "installerHeaderIcon": {
  4306. "description": "*one-click installer only.* The path to header icon (above the progress bar), relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.\nDefaults to `build/installerHeaderIcon.ico` or application icon.",
  4307. "type": [
  4308. "null",
  4309. "string"
  4310. ]
  4311. },
  4312. "installerIcon": {
  4313. "description": "The path to installer icon, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.\nDefaults to `build/installerIcon.ico` or application icon.",
  4314. "type": [
  4315. "null",
  4316. "string"
  4317. ]
  4318. },
  4319. "installerLanguages": {
  4320. "anyOf": [
  4321. {
  4322. "items": {
  4323. "type": "string"
  4324. },
  4325. "type": "array"
  4326. },
  4327. {
  4328. "type": [
  4329. "null",
  4330. "string"
  4331. ]
  4332. }
  4333. ],
  4334. "description": "The installer languages (e.g. `en_US`, `de_DE`). Change only if you understand what do you do and for what."
  4335. },
  4336. "installerSidebar": {
  4337. "description": "*assisted installer only.* `MUI_WELCOMEFINISHPAGE_BITMAP`, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.\nDefaults to `build/installerSidebar.bmp` or `${NSISDIR}\\\\Contrib\\\\Graphics\\\\Wizard\\\\nsis3-metro.bmp`. Image size 164 × 314 pixels.",
  4338. "type": [
  4339. "null",
  4340. "string"
  4341. ]
  4342. },
  4343. "language": {
  4344. "description": "[LCID Dec](https://msdn.microsoft.com/en-au/goglobal/bb964664.aspx), defaults to `1033`(`English - United States`).",
  4345. "type": [
  4346. "null",
  4347. "string"
  4348. ]
  4349. },
  4350. "license": {
  4351. "description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants). In addition to `txt`, `rtf` and `html` supported (don't forget to use `target=\"_blank\"` for links).\n\nMultiple license files in different languages are supported — use lang postfix (e.g. `_de`, `_ru`). For example, create files `license_de.txt` and `license_en.txt` in the build resources.\nIf OS language is german, `license_de.txt` will be displayed. See map of [language code to name](https://github.com/meikidd/iso-639-1/blob/master/src/data.js).\n\nAppropriate license file will be selected by user OS language.",
  4352. "type": [
  4353. "null",
  4354. "string"
  4355. ]
  4356. },
  4357. "menuCategory": {
  4358. "default": false,
  4359. "description": "Whether to create submenu for start menu shortcut and program files directory. If `true`, company name will be used. Or string value.",
  4360. "type": [
  4361. "string",
  4362. "boolean"
  4363. ]
  4364. },
  4365. "multiLanguageInstaller": {
  4366. "description": "Whether to create multi-language installer. Defaults to `unicode` option value.",
  4367. "type": "boolean"
  4368. },
  4369. "oneClick": {
  4370. "default": true,
  4371. "description": "Whether to create one-click installer or assisted.",
  4372. "type": "boolean"
  4373. },
  4374. "packElevateHelper": {
  4375. "default": true,
  4376. "description": "Whether to pack the elevate executable (required for electron-updater if per-machine installer used or can be used in the future). Ignored if `perMachine` is set to `true`.",
  4377. "type": "boolean"
  4378. },
  4379. "perMachine": {
  4380. "default": false,
  4381. "description": "Whether to show install mode installer page (choice per-machine or per-user) for assisted installer. Or whether installation always per all users (per-machine).\n\nIf `oneClick` is `true` (default): Whether to install per all users (per-machine).\n\nIf `oneClick` is `false` and `perMachine` is `true`: no install mode installer page, always install per-machine.\n\nIf `oneClick` is `false` and `perMachine` is `false` (default): install mode installer page.",
  4382. "type": "boolean"
  4383. },
  4384. "preCompressedFileExtensions": {
  4385. "anyOf": [
  4386. {
  4387. "items": {
  4388. "type": "string"
  4389. },
  4390. "type": "array"
  4391. },
  4392. {
  4393. "type": [
  4394. "null",
  4395. "string"
  4396. ]
  4397. }
  4398. ],
  4399. "default": [
  4400. ".avi",
  4401. ".mov",
  4402. ".m4v",
  4403. ".mp4",
  4404. ".m4p",
  4405. ".qt",
  4406. ".mkv",
  4407. ".webm",
  4408. ".vmdk"
  4409. ],
  4410. "description": "The file extension of files that will be not compressed. Applicable only for `extraResources` and `extraFiles` files."
  4411. },
  4412. "publish": {
  4413. "anyOf": [
  4414. {
  4415. "$ref": "#/definitions/GithubOptions"
  4416. },
  4417. {
  4418. "$ref": "#/definitions/S3Options"
  4419. },
  4420. {
  4421. "$ref": "#/definitions/SpacesOptions"
  4422. },
  4423. {
  4424. "$ref": "#/definitions/GenericServerOptions"
  4425. },
  4426. {
  4427. "$ref": "#/definitions/CustomPublishOptions"
  4428. },
  4429. {
  4430. "$ref": "#/definitions/KeygenOptions"
  4431. },
  4432. {
  4433. "$ref": "#/definitions/SnapStoreOptions"
  4434. },
  4435. {
  4436. "$ref": "#/definitions/BitbucketOptions"
  4437. },
  4438. {
  4439. "items": {
  4440. "anyOf": [
  4441. {
  4442. "$ref": "#/definitions/GithubOptions"
  4443. },
  4444. {
  4445. "$ref": "#/definitions/S3Options"
  4446. },
  4447. {
  4448. "$ref": "#/definitions/SpacesOptions"
  4449. },
  4450. {
  4451. "$ref": "#/definitions/GenericServerOptions"
  4452. },
  4453. {
  4454. "$ref": "#/definitions/CustomPublishOptions"
  4455. },
  4456. {
  4457. "$ref": "#/definitions/KeygenOptions"
  4458. },
  4459. {
  4460. "$ref": "#/definitions/SnapStoreOptions"
  4461. },
  4462. {
  4463. "$ref": "#/definitions/BitbucketOptions"
  4464. },
  4465. {
  4466. "type": "string"
  4467. }
  4468. ]
  4469. },
  4470. "type": "array"
  4471. },
  4472. {
  4473. "type": [
  4474. "null",
  4475. "string"
  4476. ]
  4477. }
  4478. ]
  4479. },
  4480. "removeDefaultUninstallWelcomePage": {
  4481. "default": false,
  4482. "description": "*assisted installer only.* remove the default uninstall welcome page.",
  4483. "type": "boolean"
  4484. },
  4485. "runAfterFinish": {
  4486. "default": true,
  4487. "description": "Whether to run the installed application after finish. For assisted installer corresponding checkbox will be removed.",
  4488. "type": "boolean"
  4489. },
  4490. "script": {
  4491. "description": "The path to NSIS script to customize installer. Defaults to `build/installer.nsi`. See [Custom NSIS script](#custom-nsis-script).",
  4492. "type": [
  4493. "null",
  4494. "string"
  4495. ]
  4496. },
  4497. "shortcutName": {
  4498. "description": "The name that will be used for all shortcuts. Defaults to the application name.",
  4499. "type": [
  4500. "null",
  4501. "string"
  4502. ]
  4503. },
  4504. "unicode": {
  4505. "default": true,
  4506. "description": "Whether to create [Unicode installer](http://nsis.sourceforge.net/Docs/Chapter1.html#intro-unicode).",
  4507. "type": "boolean"
  4508. },
  4509. "uninstallDisplayName": {
  4510. "default": "${productName} ${version}",
  4511. "description": "The uninstaller display name in the control panel.",
  4512. "type": "string"
  4513. },
  4514. "uninstallerIcon": {
  4515. "description": "The path to uninstaller icon, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.\nDefaults to `build/uninstallerIcon.ico` or application icon.",
  4516. "type": [
  4517. "null",
  4518. "string"
  4519. ]
  4520. },
  4521. "uninstallerSidebar": {
  4522. "description": "*assisted installer only.* `MUI_UNWELCOMEFINISHPAGE_BITMAP`, relative to the [build resources](/configuration/configuration#MetadataDirectories-buildResources) or to the project directory.\nDefaults to `installerSidebar` option or `build/uninstallerSidebar.bmp` or `build/installerSidebar.bmp` or `${NSISDIR}\\\\Contrib\\\\Graphics\\\\Wizard\\\\nsis3-metro.bmp`",
  4523. "type": [
  4524. "null",
  4525. "string"
  4526. ]
  4527. },
  4528. "useZip": {
  4529. "default": false,
  4530. "type": "boolean"
  4531. },
  4532. "warningsAsErrors": {
  4533. "default": true,
  4534. "description": "If `warningsAsErrors` is `true` (default): NSIS will treat warnings as errors. If `warningsAsErrors` is `false`: NSIS will allow warnings.",
  4535. "type": "boolean"
  4536. }
  4537. },
  4538. "type": "object"
  4539. },
  4540. "OutgoingHttpHeaders": {
  4541. "additionalProperties": {
  4542. "anyOf": [
  4543. {
  4544. "items": {
  4545. "type": "string"
  4546. },
  4547. "type": "array"
  4548. },
  4549. {
  4550. "type": [
  4551. "string",
  4552. "number"
  4553. ]
  4554. }
  4555. ]
  4556. },
  4557. "type": "object"
  4558. },
  4559. "PkgBackgroundOptions": {
  4560. "additionalProperties": false,
  4561. "description": "Options for the background image in a PKG installer",
  4562. "properties": {
  4563. "alignment": {
  4564. "anyOf": [
  4565. {
  4566. "enum": [
  4567. "bottom",
  4568. "bottomleft",
  4569. "bottomright",
  4570. "center",
  4571. "left",
  4572. "right",
  4573. "top",
  4574. "topleft",
  4575. "topright"
  4576. ],
  4577. "type": "string"
  4578. },
  4579. {
  4580. "type": "null"
  4581. }
  4582. ],
  4583. "default": "center",
  4584. "description": "Alignment of the background image.\nOptions are: center, left, right, top, bottom, topleft, topright, bottomleft, bottomright"
  4585. },
  4586. "file": {
  4587. "description": "Path to the image to use as an installer background.",
  4588. "type": "string"
  4589. },
  4590. "scaling": {
  4591. "anyOf": [
  4592. {
  4593. "enum": [
  4594. "none",
  4595. "proportional",
  4596. "tofit"
  4597. ],
  4598. "type": "string"
  4599. },
  4600. {
  4601. "type": "null"
  4602. }
  4603. ],
  4604. "default": "tofit",
  4605. "description": "Scaling of the background image.\nOptions are: tofit, none, proportional"
  4606. }
  4607. },
  4608. "type": "object"
  4609. },
  4610. "PkgOptions": {
  4611. "additionalProperties": false,
  4612. "description": "macOS product archive options.",
  4613. "properties": {
  4614. "allowAnywhere": {
  4615. "default": true,
  4616. "description": "Whether can be installed at the root of any volume, including non-system volumes. Otherwise, it cannot be installed at the root of a volume.\n\nCorresponds to [enable_anywhere](https://developer.apple.com/library/content/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html#//apple_ref/doc/uid/TP40005370-CH100-SW70).",
  4617. "type": [
  4618. "null",
  4619. "boolean"
  4620. ]
  4621. },
  4622. "allowCurrentUserHome": {
  4623. "default": true,
  4624. "description": "Whether can be installed into the current user’s home directory.\nA home directory installation is done as the current user (not as root), and it cannot write outside of the home directory.\nIf the product cannot be installed in the user’s home directory and be not completely functional from user’s home directory.\n\nCorresponds to [enable_currentUserHome](https://developer.apple.com/library/content/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html#//apple_ref/doc/uid/TP40005370-CH100-SW70).",
  4625. "type": [
  4626. "null",
  4627. "boolean"
  4628. ]
  4629. },
  4630. "allowRootDirectory": {
  4631. "default": true,
  4632. "description": "Whether can be installed into the root directory. Should usually be `true` unless the product can be installed only to the user’s home directory.\n\nCorresponds to [enable_localSystem](https://developer.apple.com/library/content/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html#//apple_ref/doc/uid/TP40005370-CH100-SW70).",
  4633. "type": [
  4634. "null",
  4635. "boolean"
  4636. ]
  4637. },
  4638. "artifactName": {
  4639. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  4640. "type": [
  4641. "null",
  4642. "string"
  4643. ]
  4644. },
  4645. "background": {
  4646. "anyOf": [
  4647. {
  4648. "$ref": "#/definitions/PkgBackgroundOptions"
  4649. },
  4650. {
  4651. "type": "null"
  4652. }
  4653. ],
  4654. "description": "Options for the background image for the installer."
  4655. },
  4656. "conclusion": {
  4657. "description": "The path to the conclusion file. This may be used to customize the text on the final \"Summary\" page of the installer.",
  4658. "type": [
  4659. "null",
  4660. "string"
  4661. ]
  4662. },
  4663. "hasStrictIdentifier": {
  4664. "default": true,
  4665. "description": "Require identical bundle identifiers at install path?",
  4666. "type": [
  4667. "null",
  4668. "boolean"
  4669. ]
  4670. },
  4671. "identity": {
  4672. "description": "The name of certificate to use when signing. Consider using environment variables [CSC_LINK or CSC_NAME](/code-signing) instead of specifying this option.",
  4673. "type": [
  4674. "null",
  4675. "string"
  4676. ]
  4677. },
  4678. "installLocation": {
  4679. "default": "/Applications",
  4680. "description": "The install location. [Do not use it](https://stackoverflow.com/questions/12863944/how-do-you-specify-a-default-install-location-to-home-with-pkgbuild) to create per-user package.\nMostly never you will need to change this option. `/Applications` would install it as expected into `/Applications` if the local system domain is chosen, or into `$HOME/Applications` if the home installation is chosen.",
  4681. "type": [
  4682. "null",
  4683. "string"
  4684. ]
  4685. },
  4686. "isRelocatable": {
  4687. "default": true,
  4688. "description": "Install bundle over previous version if moved by user?",
  4689. "type": [
  4690. "null",
  4691. "boolean"
  4692. ]
  4693. },
  4694. "isVersionChecked": {
  4695. "default": true,
  4696. "description": "Don't install bundle if newer version on disk?",
  4697. "type": [
  4698. "null",
  4699. "boolean"
  4700. ]
  4701. },
  4702. "license": {
  4703. "description": "The path to EULA license file. Defaults to `license.txt` or `eula.txt` (or uppercase variants). In addition to `txt`, `rtf` and `html` supported (don't forget to use `target=\"_blank\"` for links).",
  4704. "type": [
  4705. "null",
  4706. "string"
  4707. ]
  4708. },
  4709. "mustClose": {
  4710. "anyOf": [
  4711. {
  4712. "items": {
  4713. "type": "string"
  4714. },
  4715. "type": "array"
  4716. },
  4717. {
  4718. "type": "null"
  4719. }
  4720. ],
  4721. "description": "Identifies applications that must be closed before the package is installed.\n\nCorresponds to [must-close](https://developer.apple.com/library/archive/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html#//apple_ref/doc/uid/TP40005370-CH100-SW77)."
  4722. },
  4723. "overwriteAction": {
  4724. "anyOf": [
  4725. {
  4726. "enum": [
  4727. "update",
  4728. "upgrade"
  4729. ],
  4730. "type": "string"
  4731. },
  4732. {
  4733. "type": "null"
  4734. }
  4735. ],
  4736. "default": "upgrade",
  4737. "description": "Specifies how an existing version of the bundle on disk should be handled when the version in\nthe package is installed.\n\nIf you specify upgrade, the bundle in the package atomi-cally replaces any version on disk;\nthis has the effect of deleting old paths that no longer exist in the new version of\nthe bundle.\n\nIf you specify update, the bundle in the package overwrites the version on disk, and any files\nnot contained in the package will be left intact; this is appropriate when you are delivering\nan update-only package.\n\nAnother effect of update is that the package bundle will not be installed at all if there is\nnot already a version on disk; this allows a package to deliver an update for an app that\nthe user might have deleted."
  4738. },
  4739. "productbuild": {
  4740. "anyOf": [
  4741. {
  4742. "items": {
  4743. "type": "string"
  4744. },
  4745. "type": "array"
  4746. },
  4747. {
  4748. "type": "null"
  4749. }
  4750. ],
  4751. "description": "should be not documented, only to experiment"
  4752. },
  4753. "publish": {
  4754. "anyOf": [
  4755. {
  4756. "$ref": "#/definitions/GithubOptions"
  4757. },
  4758. {
  4759. "$ref": "#/definitions/S3Options"
  4760. },
  4761. {
  4762. "$ref": "#/definitions/SpacesOptions"
  4763. },
  4764. {
  4765. "$ref": "#/definitions/GenericServerOptions"
  4766. },
  4767. {
  4768. "$ref": "#/definitions/CustomPublishOptions"
  4769. },
  4770. {
  4771. "$ref": "#/definitions/KeygenOptions"
  4772. },
  4773. {
  4774. "$ref": "#/definitions/SnapStoreOptions"
  4775. },
  4776. {
  4777. "$ref": "#/definitions/BitbucketOptions"
  4778. },
  4779. {
  4780. "items": {
  4781. "anyOf": [
  4782. {
  4783. "$ref": "#/definitions/GithubOptions"
  4784. },
  4785. {
  4786. "$ref": "#/definitions/S3Options"
  4787. },
  4788. {
  4789. "$ref": "#/definitions/SpacesOptions"
  4790. },
  4791. {
  4792. "$ref": "#/definitions/GenericServerOptions"
  4793. },
  4794. {
  4795. "$ref": "#/definitions/CustomPublishOptions"
  4796. },
  4797. {
  4798. "$ref": "#/definitions/KeygenOptions"
  4799. },
  4800. {
  4801. "$ref": "#/definitions/SnapStoreOptions"
  4802. },
  4803. {
  4804. "$ref": "#/definitions/BitbucketOptions"
  4805. },
  4806. {
  4807. "type": "string"
  4808. }
  4809. ]
  4810. },
  4811. "type": "array"
  4812. },
  4813. {
  4814. "type": [
  4815. "null",
  4816. "string"
  4817. ]
  4818. }
  4819. ]
  4820. },
  4821. "scripts": {
  4822. "default": "build/pkg-scripts",
  4823. "description": "The scripts directory, relative to `build` (build resources directory).\nThe scripts can be in any language so long as the files are marked executable and have the appropriate shebang indicating the path to the interpreter.\nScripts are required to be executable (`chmod +x file`).",
  4824. "type": [
  4825. "null",
  4826. "string"
  4827. ]
  4828. },
  4829. "welcome": {
  4830. "description": "The path to the welcome file. This may be used to customize the text on the Introduction page of the installer.",
  4831. "type": [
  4832. "null",
  4833. "string"
  4834. ]
  4835. }
  4836. },
  4837. "type": "object"
  4838. },
  4839. "PlugDescriptor": {
  4840. "additionalProperties": {
  4841. "anyOf": [
  4842. {
  4843. "type": "object"
  4844. },
  4845. {
  4846. "type": "null"
  4847. }
  4848. ]
  4849. },
  4850. "type": "object"
  4851. },
  4852. "PortableOptions": {
  4853. "additionalProperties": false,
  4854. "description": "Portable options.",
  4855. "properties": {
  4856. "artifactName": {
  4857. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  4858. "type": [
  4859. "null",
  4860. "string"
  4861. ]
  4862. },
  4863. "customNsisBinary": {
  4864. "anyOf": [
  4865. {
  4866. "$ref": "#/definitions/CustomNsisBinary"
  4867. },
  4868. {
  4869. "type": "null"
  4870. }
  4871. ],
  4872. "description": "Allows you to provide your own `makensis`, such as one with support for debug logging via LogSet and LogText. (Logging also requires option `debugLogging = true`)"
  4873. },
  4874. "guid": {
  4875. "description": "See [GUID vs Application Name](../configuration/nsis#guid-vs-application-name).",
  4876. "type": [
  4877. "null",
  4878. "string"
  4879. ]
  4880. },
  4881. "publish": {
  4882. "anyOf": [
  4883. {
  4884. "$ref": "#/definitions/GithubOptions"
  4885. },
  4886. {
  4887. "$ref": "#/definitions/S3Options"
  4888. },
  4889. {
  4890. "$ref": "#/definitions/SpacesOptions"
  4891. },
  4892. {
  4893. "$ref": "#/definitions/GenericServerOptions"
  4894. },
  4895. {
  4896. "$ref": "#/definitions/CustomPublishOptions"
  4897. },
  4898. {
  4899. "$ref": "#/definitions/KeygenOptions"
  4900. },
  4901. {
  4902. "$ref": "#/definitions/SnapStoreOptions"
  4903. },
  4904. {
  4905. "$ref": "#/definitions/BitbucketOptions"
  4906. },
  4907. {
  4908. "items": {
  4909. "anyOf": [
  4910. {
  4911. "$ref": "#/definitions/GithubOptions"
  4912. },
  4913. {
  4914. "$ref": "#/definitions/S3Options"
  4915. },
  4916. {
  4917. "$ref": "#/definitions/SpacesOptions"
  4918. },
  4919. {
  4920. "$ref": "#/definitions/GenericServerOptions"
  4921. },
  4922. {
  4923. "$ref": "#/definitions/CustomPublishOptions"
  4924. },
  4925. {
  4926. "$ref": "#/definitions/KeygenOptions"
  4927. },
  4928. {
  4929. "$ref": "#/definitions/SnapStoreOptions"
  4930. },
  4931. {
  4932. "$ref": "#/definitions/BitbucketOptions"
  4933. },
  4934. {
  4935. "type": "string"
  4936. }
  4937. ]
  4938. },
  4939. "type": "array"
  4940. },
  4941. {
  4942. "type": [
  4943. "null",
  4944. "string"
  4945. ]
  4946. }
  4947. ]
  4948. },
  4949. "requestExecutionLevel": {
  4950. "default": "user",
  4951. "description": "The [requested execution level](http://nsis.sourceforge.net/Reference/RequestExecutionLevel) for Windows.",
  4952. "enum": [
  4953. "admin",
  4954. "highest",
  4955. "user"
  4956. ],
  4957. "type": "string"
  4958. },
  4959. "splashImage": {
  4960. "description": "The image to show while the portable executable is extracting. This image must be a bitmap (`.bmp`) image.",
  4961. "type": [
  4962. "null",
  4963. "string"
  4964. ]
  4965. },
  4966. "unicode": {
  4967. "default": true,
  4968. "description": "Whether to create [Unicode installer](http://nsis.sourceforge.net/Docs/Chapter1.html#intro-unicode).",
  4969. "type": "boolean"
  4970. },
  4971. "unpackDirName": {
  4972. "description": "The unpack directory for the portable app resources.\n\nIf set to a string, it will be the name in [TEMP](https://www.askvg.com/where-does-windows-store-temporary-files-and-how-to-change-temp-folder-location/) directory\nIf set explicitly to `false`, it will use the Windows temp directory ($PLUGINSDIR) that is unique to each launch of the portable application.\n\nDefaults to [uuid](https://github.com/segmentio/ksuid) of build (changed on each build of portable executable).",
  4973. "type": [
  4974. "string",
  4975. "boolean"
  4976. ]
  4977. },
  4978. "useZip": {
  4979. "default": false,
  4980. "type": "boolean"
  4981. },
  4982. "warningsAsErrors": {
  4983. "default": true,
  4984. "description": "If `warningsAsErrors` is `true` (default): NSIS will treat warnings as errors. If `warningsAsErrors` is `false`: NSIS will allow warnings.",
  4985. "type": "boolean"
  4986. }
  4987. },
  4988. "type": "object"
  4989. },
  4990. "Protocol": {
  4991. "additionalProperties": false,
  4992. "description": "URL Protocol Schemes. Protocols to associate the app with. macOS only.\n\nPlease note — on macOS [you need to register an `open-url` event handler](http://electron.atom.io/docs/api/app/#event-open-url-macos).",
  4993. "properties": {
  4994. "name": {
  4995. "description": "The name. e.g. `IRC server URL`.",
  4996. "type": "string"
  4997. },
  4998. "role": {
  4999. "default": "Editor",
  5000. "description": "*macOS-only* The app’s role with respect to the type.",
  5001. "enum": [
  5002. "Editor",
  5003. "None",
  5004. "Shell",
  5005. "Viewer"
  5006. ],
  5007. "type": "string"
  5008. },
  5009. "schemes": {
  5010. "description": "The schemes. e.g. `[\"irc\", \"ircs\"]`.",
  5011. "items": {
  5012. "type": "string"
  5013. },
  5014. "type": "array"
  5015. }
  5016. },
  5017. "required": [
  5018. "name",
  5019. "schemes"
  5020. ],
  5021. "type": "object"
  5022. },
  5023. "ReleaseInfo": {
  5024. "additionalProperties": false,
  5025. "properties": {
  5026. "releaseDate": {
  5027. "description": "The release date.",
  5028. "type": "string"
  5029. },
  5030. "releaseName": {
  5031. "description": "The release name.",
  5032. "type": [
  5033. "null",
  5034. "string"
  5035. ]
  5036. },
  5037. "releaseNotes": {
  5038. "description": "The release notes.",
  5039. "type": [
  5040. "null",
  5041. "string"
  5042. ]
  5043. },
  5044. "releaseNotesFile": {
  5045. "description": "The path to release notes file. Defaults to `release-notes-${platform}.md` (where `platform` it is current platform — `mac`, `linux` or `windows`) or `release-notes.md` in the [build resources](#MetadataDirectories-buildResources).",
  5046. "type": [
  5047. "null",
  5048. "string"
  5049. ]
  5050. },
  5051. "vendor": {
  5052. "anyOf": [
  5053. {
  5054. "typeof": "function"
  5055. },
  5056. {
  5057. "type": "null"
  5058. }
  5059. ],
  5060. "description": "Vendor specific information."
  5061. }
  5062. },
  5063. "type": "object"
  5064. },
  5065. "S3Options": {
  5066. "additionalProperties": false,
  5067. "description": "[Amazon S3](https://aws.amazon.com/s3/) options.\nAWS credentials are required, please see [getting your credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/getting-your-credentials.html).\nDefine `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` [environment variables](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-environment.html).\nOr in the [~/.aws/credentials](http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html).\n\nExample configuration:\n\n```json\n{\n\"build\":\n \"publish\": {\n \"provider\": \"s3\",\n \"bucket\": \"bucket-name\"\n }\n}\n}\n```",
  5068. "properties": {
  5069. "accelerate": {
  5070. "description": "If set to true, this will enable the s3 accelerated endpoint\nThese endpoints have a particular format of:\n ${bucketname}.s3-accelerate.amazonaws.com",
  5071. "type": "boolean"
  5072. },
  5073. "acl": {
  5074. "anyOf": [
  5075. {
  5076. "enum": [
  5077. "private",
  5078. "public-read"
  5079. ],
  5080. "type": "string"
  5081. },
  5082. {
  5083. "type": "null"
  5084. }
  5085. ],
  5086. "default": "public-read",
  5087. "description": "The ACL. Set to `null` to not [add](https://github.com/electron-userland/electron-builder/issues/1822).\n\nPlease see [required permissions for the S3 provider](https://github.com/electron-userland/electron-builder/issues/1618#issuecomment-314679128)."
  5088. },
  5089. "bucket": {
  5090. "description": "The bucket name.",
  5091. "type": "string"
  5092. },
  5093. "channel": {
  5094. "default": "latest",
  5095. "description": "The update channel.",
  5096. "type": [
  5097. "null",
  5098. "string"
  5099. ]
  5100. },
  5101. "encryption": {
  5102. "anyOf": [
  5103. {
  5104. "enum": [
  5105. "AES256",
  5106. "aws:kms"
  5107. ],
  5108. "type": "string"
  5109. },
  5110. {
  5111. "type": "null"
  5112. }
  5113. ],
  5114. "description": "Server-side encryption algorithm to use for the object."
  5115. },
  5116. "endpoint": {
  5117. "description": "The endpoint URI to send requests to. The default endpoint is built from the configured region.\nThe endpoint should be a string like `https://{service}.{region}.amazonaws.com`.",
  5118. "type": [
  5119. "null",
  5120. "string"
  5121. ]
  5122. },
  5123. "path": {
  5124. "default": "/",
  5125. "description": "The directory path.",
  5126. "type": [
  5127. "null",
  5128. "string"
  5129. ]
  5130. },
  5131. "provider": {
  5132. "description": "The provider. Must be `s3`.",
  5133. "enum": [
  5134. "s3"
  5135. ],
  5136. "type": "string"
  5137. },
  5138. "publishAutoUpdate": {
  5139. "default": true,
  5140. "description": "Whether to publish auto update info files.\n\nAuto update relies only on the first provider in the list (you can specify several publishers).\nThus, probably, there`s no need to upload the metadata files for the other configured providers. But by default will be uploaded.",
  5141. "type": "boolean"
  5142. },
  5143. "publisherName": {
  5144. "anyOf": [
  5145. {
  5146. "items": {
  5147. "type": "string"
  5148. },
  5149. "type": "array"
  5150. },
  5151. {
  5152. "type": "null"
  5153. }
  5154. ]
  5155. },
  5156. "region": {
  5157. "description": "The region. Is determined and set automatically when publishing.",
  5158. "type": [
  5159. "null",
  5160. "string"
  5161. ]
  5162. },
  5163. "requestHeaders": {
  5164. "$ref": "#/definitions/OutgoingHttpHeaders",
  5165. "description": "Any custom request headers"
  5166. },
  5167. "storageClass": {
  5168. "anyOf": [
  5169. {
  5170. "enum": [
  5171. "REDUCED_REDUNDANCY",
  5172. "STANDARD",
  5173. "STANDARD_IA"
  5174. ],
  5175. "type": "string"
  5176. },
  5177. {
  5178. "type": "null"
  5179. }
  5180. ],
  5181. "default": "STANDARD",
  5182. "description": "The type of storage to use for the object."
  5183. },
  5184. "timeout": {
  5185. "default": 120000,
  5186. "description": "Request timeout in milliseconds. (Default is 2 minutes; O is ignored)",
  5187. "type": [
  5188. "null",
  5189. "number"
  5190. ]
  5191. },
  5192. "updaterCacheDirName": {
  5193. "type": [
  5194. "null",
  5195. "string"
  5196. ]
  5197. }
  5198. },
  5199. "required": [
  5200. "bucket",
  5201. "provider"
  5202. ],
  5203. "type": "object"
  5204. },
  5205. "SlotDescriptor": {
  5206. "additionalProperties": {
  5207. "anyOf": [
  5208. {
  5209. "typeof": "function"
  5210. },
  5211. {
  5212. "type": "null"
  5213. }
  5214. ]
  5215. },
  5216. "type": "object"
  5217. },
  5218. "SnapOptions": {
  5219. "additionalProperties": false,
  5220. "properties": {
  5221. "after": {
  5222. "anyOf": [
  5223. {
  5224. "items": {
  5225. "type": "string"
  5226. },
  5227. "type": "array"
  5228. },
  5229. {
  5230. "type": "null"
  5231. }
  5232. ],
  5233. "description": "Specifies any [parts](https://snapcraft.io/docs/reference/parts) that should be built before this part.\nDefaults to `[\"desktop-gtk2\"\"]`.\n\nIf list contains `default`, it will be replaced to default list, so, `[\"default\", \"foo\"]` can be used to add custom parts `foo` in addition to defaults."
  5234. },
  5235. "allowNativeWayland": {
  5236. "description": "Allow running the program with native wayland support with --ozone-platform=wayland.\nDisabled by default because of this issue in older Electron/Snap versions: https://github.com/electron-userland/electron-builder/issues/4007",
  5237. "type": [
  5238. "null",
  5239. "boolean"
  5240. ]
  5241. },
  5242. "appPartStage": {
  5243. "anyOf": [
  5244. {
  5245. "items": {
  5246. "type": "string"
  5247. },
  5248. "type": "array"
  5249. },
  5250. {
  5251. "type": "null"
  5252. }
  5253. ],
  5254. "description": "Specifies which files from the app part to stage and which to exclude. Individual files, directories, wildcards, globstars, and exclusions are accepted. See [Snapcraft filesets](https://snapcraft.io/docs/snapcraft-filesets) to learn more about the format.\n\nThe defaults can be found in [snap.ts](https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/templates/snap/snapcraft.yaml#L29)."
  5255. },
  5256. "artifactName": {
  5257. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  5258. "type": [
  5259. "null",
  5260. "string"
  5261. ]
  5262. },
  5263. "assumes": {
  5264. "anyOf": [
  5265. {
  5266. "items": {
  5267. "type": "string"
  5268. },
  5269. "type": "array"
  5270. },
  5271. {
  5272. "type": [
  5273. "null",
  5274. "string"
  5275. ]
  5276. }
  5277. ],
  5278. "description": "The list of features that must be supported by the core in order for this snap to install."
  5279. },
  5280. "autoStart": {
  5281. "default": false,
  5282. "description": "Whether or not the snap should automatically start on login.",
  5283. "type": "boolean"
  5284. },
  5285. "base": {
  5286. "description": "A snap of type base to be used as the execution environment for this snap. Examples: `core`, `core18`, `core20`. Defaults to `core18`",
  5287. "type": [
  5288. "null",
  5289. "string"
  5290. ]
  5291. },
  5292. "buildPackages": {
  5293. "anyOf": [
  5294. {
  5295. "items": {
  5296. "type": "string"
  5297. },
  5298. "type": "array"
  5299. },
  5300. {
  5301. "type": "null"
  5302. }
  5303. ],
  5304. "description": "The list of debian packages needs to be installed for building this snap."
  5305. },
  5306. "category": {
  5307. "description": "The [application category](https://specifications.freedesktop.org/menu-spec/latest/apa.html#main-category-registry).",
  5308. "type": [
  5309. "null",
  5310. "string"
  5311. ]
  5312. },
  5313. "compression": {
  5314. "anyOf": [
  5315. {
  5316. "enum": [
  5317. "lzo",
  5318. "xz"
  5319. ],
  5320. "type": "string"
  5321. },
  5322. {
  5323. "type": "null"
  5324. }
  5325. ],
  5326. "description": "Sets the compression type for the snap. Can be xz, lzo, or null."
  5327. },
  5328. "confinement": {
  5329. "anyOf": [
  5330. {
  5331. "enum": [
  5332. "classic",
  5333. "devmode",
  5334. "strict"
  5335. ],
  5336. "type": "string"
  5337. },
  5338. {
  5339. "type": "null"
  5340. }
  5341. ],
  5342. "default": "strict",
  5343. "description": "The type of [confinement](https://snapcraft.io/docs/reference/confinement) supported by the snap."
  5344. },
  5345. "description": {
  5346. "description": "As [description](/configuration/configuration#Metadata-description) from application package.json, but allows you to specify different for Linux.",
  5347. "type": [
  5348. "null",
  5349. "string"
  5350. ]
  5351. },
  5352. "desktop": {
  5353. "description": "The [Desktop file](https://developer.gnome.org/documentation/guidelines/maintainer/integrating.html#desktop-files) entries (name to value)."
  5354. },
  5355. "environment": {
  5356. "anyOf": [
  5357. {
  5358. "additionalProperties": {
  5359. "type": "string"
  5360. },
  5361. "type": "object"
  5362. },
  5363. {
  5364. "type": "null"
  5365. }
  5366. ],
  5367. "description": "The custom environment. Defaults to `{\"TMPDIR: \"$XDG_RUNTIME_DIR\"}`. If you set custom, it will be merged with default."
  5368. },
  5369. "executableArgs": {
  5370. "anyOf": [
  5371. {
  5372. "items": {
  5373. "type": "string"
  5374. },
  5375. "type": "array"
  5376. },
  5377. {
  5378. "type": "null"
  5379. }
  5380. ],
  5381. "description": "The executable parameters. Pass to executableName"
  5382. },
  5383. "grade": {
  5384. "anyOf": [
  5385. {
  5386. "enum": [
  5387. "devel",
  5388. "stable"
  5389. ],
  5390. "type": "string"
  5391. },
  5392. {
  5393. "type": "null"
  5394. }
  5395. ],
  5396. "default": "stable",
  5397. "description": "The quality grade of the snap. It can be either `devel` (i.e. a development version of the snap, so not to be published to the “stable” or “candidate” channels) or “stable” (i.e. a stable release or release candidate, which can be released to all channels)."
  5398. },
  5399. "hooks": {
  5400. "default": "build/snap-hooks",
  5401. "description": "The [hooks](https://docs.snapcraft.io/build-snaps/hooks) directory, relative to `build` (build resources directory).",
  5402. "type": [
  5403. "null",
  5404. "string"
  5405. ]
  5406. },
  5407. "layout": {
  5408. "anyOf": [
  5409. {
  5410. "typeof": "function"
  5411. },
  5412. {
  5413. "type": "null"
  5414. }
  5415. ],
  5416. "description": "Specifies any files to make accessible from locations such as `/usr`, `/var`, and `/etc`. See [snap layouts](https://snapcraft.io/docs/snap-layouts) to learn more."
  5417. },
  5418. "mimeTypes": {
  5419. "anyOf": [
  5420. {
  5421. "items": {
  5422. "type": "string"
  5423. },
  5424. "type": "array"
  5425. },
  5426. {
  5427. "type": "null"
  5428. }
  5429. ],
  5430. "description": "The mime types in addition to specified in the file associations. Use it if you don't want to register a new mime type, but reuse existing."
  5431. },
  5432. "plugs": {
  5433. "anyOf": [
  5434. {
  5435. "$ref": "#/definitions/PlugDescriptor"
  5436. },
  5437. {
  5438. "items": {
  5439. "anyOf": [
  5440. {
  5441. "$ref": "#/definitions/PlugDescriptor"
  5442. },
  5443. {
  5444. "type": "string"
  5445. }
  5446. ]
  5447. },
  5448. "type": "array"
  5449. },
  5450. {
  5451. "type": "null"
  5452. }
  5453. ],
  5454. "description": "The list of [plugs](https://snapcraft.io/docs/reference/interfaces).\nDefaults to `[\"desktop\", \"desktop-legacy\", \"home\", \"x11\", \"wayland\", \"unity7\", \"browser-support\", \"network\", \"gsettings\", \"audio-playback\", \"pulseaudio\", \"opengl\"]`.\n\nIf list contains `default`, it will be replaced to default list, so, `[\"default\", \"foo\"]` can be used to add custom plug `foo` in addition to defaults.\n\nAdditional attributes can be specified using object instead of just name of plug:\n```\n[\n {\n \"browser-sandbox\": {\n \"interface\": \"browser-support\",\n \"allow-sandbox\": true\n },\n },\n \"another-simple-plug-name\"\n]\n```"
  5455. },
  5456. "publish": {
  5457. "anyOf": [
  5458. {
  5459. "$ref": "#/definitions/GithubOptions"
  5460. },
  5461. {
  5462. "$ref": "#/definitions/S3Options"
  5463. },
  5464. {
  5465. "$ref": "#/definitions/SpacesOptions"
  5466. },
  5467. {
  5468. "$ref": "#/definitions/GenericServerOptions"
  5469. },
  5470. {
  5471. "$ref": "#/definitions/CustomPublishOptions"
  5472. },
  5473. {
  5474. "$ref": "#/definitions/KeygenOptions"
  5475. },
  5476. {
  5477. "$ref": "#/definitions/SnapStoreOptions"
  5478. },
  5479. {
  5480. "$ref": "#/definitions/BitbucketOptions"
  5481. },
  5482. {
  5483. "items": {
  5484. "anyOf": [
  5485. {
  5486. "$ref": "#/definitions/GithubOptions"
  5487. },
  5488. {
  5489. "$ref": "#/definitions/S3Options"
  5490. },
  5491. {
  5492. "$ref": "#/definitions/SpacesOptions"
  5493. },
  5494. {
  5495. "$ref": "#/definitions/GenericServerOptions"
  5496. },
  5497. {
  5498. "$ref": "#/definitions/CustomPublishOptions"
  5499. },
  5500. {
  5501. "$ref": "#/definitions/KeygenOptions"
  5502. },
  5503. {
  5504. "$ref": "#/definitions/SnapStoreOptions"
  5505. },
  5506. {
  5507. "$ref": "#/definitions/BitbucketOptions"
  5508. },
  5509. {
  5510. "type": "string"
  5511. }
  5512. ]
  5513. },
  5514. "type": "array"
  5515. },
  5516. {
  5517. "type": [
  5518. "null",
  5519. "string"
  5520. ]
  5521. }
  5522. ]
  5523. },
  5524. "slots": {
  5525. "anyOf": [
  5526. {
  5527. "$ref": "#/definitions/PlugDescriptor"
  5528. },
  5529. {
  5530. "items": {
  5531. "anyOf": [
  5532. {
  5533. "$ref": "#/definitions/SlotDescriptor"
  5534. },
  5535. {
  5536. "type": "string"
  5537. }
  5538. ]
  5539. },
  5540. "type": "array"
  5541. },
  5542. {
  5543. "type": "null"
  5544. }
  5545. ],
  5546. "description": "The list of [slots](https://snapcraft.io/docs/reference/interfaces).\n\nAdditional attributes can be specified using object instead of just name of slot:\n```\n[\n {\n \"mpris\": {\n \"name\": \"chromium\"\n },\n }\n]\n\nIn case you want your application to be a compliant MPris player, you will need to definie\nThe mpris slot with \"chromium\" name.\nThis electron has it [hardcoded](https://source.chromium.org/chromium/chromium/src/+/master:components/system_media_controls/linux/system_media_controls_linux.cc;l=51;bpv=0;bpt=1),\nand we need to pass this name so snap [will allow it](https://forum.snapcraft.io/t/unable-to-use-mpris-interface/15360/7) in strict confinement."
  5547. },
  5548. "stagePackages": {
  5549. "anyOf": [
  5550. {
  5551. "items": {
  5552. "type": "string"
  5553. },
  5554. "type": "array"
  5555. },
  5556. {
  5557. "type": "null"
  5558. }
  5559. ],
  5560. "description": "The list of Ubuntu packages to use that are needed to support the `app` part creation. Like `depends` for `deb`.\nDefaults to `[\"libnspr4\", \"libnss3\", \"libxss1\", \"libappindicator3-1\", \"libsecret-1-0\"]`.\n\nIf list contains `default`, it will be replaced to default list, so, `[\"default\", \"foo\"]` can be used to add custom package `foo` in addition to defaults."
  5561. },
  5562. "summary": {
  5563. "description": "The 78 character long summary. Defaults to [productName](/configuration/configuration#Configuration-productName).",
  5564. "type": [
  5565. "null",
  5566. "string"
  5567. ]
  5568. },
  5569. "synopsis": {
  5570. "description": "The [short description](https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description).",
  5571. "type": [
  5572. "null",
  5573. "string"
  5574. ]
  5575. },
  5576. "title": {
  5577. "description": "An optional title for the snap, may contain uppercase letters and spaces. Defaults to `productName`. See [snap format documentation](https://snapcraft.io/docs/snap-format).",
  5578. "type": [
  5579. "null",
  5580. "string"
  5581. ]
  5582. },
  5583. "useTemplateApp": {
  5584. "description": "Whether to use template snap. Defaults to `true` if `stagePackages` not specified.",
  5585. "type": "boolean"
  5586. }
  5587. },
  5588. "type": "object"
  5589. },
  5590. "SnapStoreOptions": {
  5591. "additionalProperties": false,
  5592. "description": "[Snap Store](https://snapcraft.io/) options.",
  5593. "properties": {
  5594. "channels": {
  5595. "anyOf": [
  5596. {
  5597. "items": {
  5598. "type": "string"
  5599. },
  5600. "type": "array"
  5601. },
  5602. {
  5603. "type": [
  5604. "null",
  5605. "string"
  5606. ]
  5607. }
  5608. ],
  5609. "default": [
  5610. "edge"
  5611. ],
  5612. "description": "The list of channels the snap would be released."
  5613. },
  5614. "provider": {
  5615. "description": "The provider. Must be `snapStore`.",
  5616. "enum": [
  5617. "snapStore"
  5618. ],
  5619. "type": "string"
  5620. },
  5621. "publishAutoUpdate": {
  5622. "default": true,
  5623. "description": "Whether to publish auto update info files.\n\nAuto update relies only on the first provider in the list (you can specify several publishers).\nThus, probably, there`s no need to upload the metadata files for the other configured providers. But by default will be uploaded.",
  5624. "type": "boolean"
  5625. },
  5626. "publisherName": {
  5627. "anyOf": [
  5628. {
  5629. "items": {
  5630. "type": "string"
  5631. },
  5632. "type": "array"
  5633. },
  5634. {
  5635. "type": "null"
  5636. }
  5637. ]
  5638. },
  5639. "repo": {
  5640. "description": "snapcraft repo name",
  5641. "type": "string"
  5642. },
  5643. "requestHeaders": {
  5644. "$ref": "#/definitions/OutgoingHttpHeaders",
  5645. "description": "Any custom request headers"
  5646. },
  5647. "timeout": {
  5648. "default": 120000,
  5649. "description": "Request timeout in milliseconds. (Default is 2 minutes; O is ignored)",
  5650. "type": [
  5651. "null",
  5652. "number"
  5653. ]
  5654. },
  5655. "updaterCacheDirName": {
  5656. "type": [
  5657. "null",
  5658. "string"
  5659. ]
  5660. }
  5661. },
  5662. "required": [
  5663. "provider"
  5664. ],
  5665. "type": "object"
  5666. },
  5667. "SpacesOptions": {
  5668. "additionalProperties": false,
  5669. "description": "[DigitalOcean Spaces](https://www.digitalocean.com/community/tutorials/an-introduction-to-digitalocean-spaces) options.\nAccess key is required, define `DO_KEY_ID` and `DO_SECRET_KEY` environment variables.",
  5670. "properties": {
  5671. "acl": {
  5672. "anyOf": [
  5673. {
  5674. "enum": [
  5675. "private",
  5676. "public-read"
  5677. ],
  5678. "type": "string"
  5679. },
  5680. {
  5681. "type": "null"
  5682. }
  5683. ],
  5684. "default": "public-read",
  5685. "description": "The ACL. Set to `null` to not [add](https://github.com/electron-userland/electron-builder/issues/1822)."
  5686. },
  5687. "channel": {
  5688. "default": "latest",
  5689. "description": "The update channel.",
  5690. "type": [
  5691. "null",
  5692. "string"
  5693. ]
  5694. },
  5695. "name": {
  5696. "description": "The space name.",
  5697. "type": "string"
  5698. },
  5699. "path": {
  5700. "default": "/",
  5701. "description": "The directory path.",
  5702. "type": [
  5703. "null",
  5704. "string"
  5705. ]
  5706. },
  5707. "provider": {
  5708. "description": "The provider. Must be `spaces`.",
  5709. "enum": [
  5710. "spaces"
  5711. ],
  5712. "type": "string"
  5713. },
  5714. "publishAutoUpdate": {
  5715. "default": true,
  5716. "description": "Whether to publish auto update info files.\n\nAuto update relies only on the first provider in the list (you can specify several publishers).\nThus, probably, there`s no need to upload the metadata files for the other configured providers. But by default will be uploaded.",
  5717. "type": "boolean"
  5718. },
  5719. "publisherName": {
  5720. "anyOf": [
  5721. {
  5722. "items": {
  5723. "type": "string"
  5724. },
  5725. "type": "array"
  5726. },
  5727. {
  5728. "type": "null"
  5729. }
  5730. ]
  5731. },
  5732. "region": {
  5733. "description": "The region (e.g. `nyc3`).",
  5734. "type": "string"
  5735. },
  5736. "requestHeaders": {
  5737. "$ref": "#/definitions/OutgoingHttpHeaders",
  5738. "description": "Any custom request headers"
  5739. },
  5740. "timeout": {
  5741. "default": 120000,
  5742. "description": "Request timeout in milliseconds. (Default is 2 minutes; O is ignored)",
  5743. "type": [
  5744. "null",
  5745. "number"
  5746. ]
  5747. },
  5748. "updaterCacheDirName": {
  5749. "type": [
  5750. "null",
  5751. "string"
  5752. ]
  5753. }
  5754. },
  5755. "required": [
  5756. "name",
  5757. "provider",
  5758. "region"
  5759. ],
  5760. "type": "object"
  5761. },
  5762. "SquirrelWindowsOptions": {
  5763. "additionalProperties": false,
  5764. "properties": {
  5765. "artifactName": {
  5766. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template).",
  5767. "type": [
  5768. "null",
  5769. "string"
  5770. ]
  5771. },
  5772. "iconUrl": {
  5773. "description": "A URL to an ICO file to use as the application icon (displayed in Control Panel > Programs and Features). Defaults to the Electron icon.\n\nPlease note — [local icon file url is not accepted](https://github.com/atom/grunt-electron-installer/issues/73), must be https/http.\n\nIf you don't plan to build windows installer, you can omit it.\nIf your project repository is public on GitHub, it will be `https://github.com/${u}/${p}/blob/master/build/icon.ico?raw=true` by default.",
  5774. "type": [
  5775. "null",
  5776. "string"
  5777. ]
  5778. },
  5779. "loadingGif": {
  5780. "description": "The path to a .gif file to display during install. `build/install-spinner.gif` will be used if exists (it is a recommended way to set)\n(otherwise [default](https://github.com/electron/windows-installer/blob/master/resources/install-spinner.gif)).",
  5781. "type": [
  5782. "null",
  5783. "string"
  5784. ]
  5785. },
  5786. "msi": {
  5787. "description": "Whether to create an MSI installer. Defaults to `false` (MSI is not created).",
  5788. "type": "boolean"
  5789. },
  5790. "name": {
  5791. "description": "https://github.com/electron-userland/electron-builder/issues/1743",
  5792. "type": "string"
  5793. },
  5794. "publish": {
  5795. "anyOf": [
  5796. {
  5797. "$ref": "#/definitions/GithubOptions"
  5798. },
  5799. {
  5800. "$ref": "#/definitions/S3Options"
  5801. },
  5802. {
  5803. "$ref": "#/definitions/SpacesOptions"
  5804. },
  5805. {
  5806. "$ref": "#/definitions/GenericServerOptions"
  5807. },
  5808. {
  5809. "$ref": "#/definitions/CustomPublishOptions"
  5810. },
  5811. {
  5812. "$ref": "#/definitions/KeygenOptions"
  5813. },
  5814. {
  5815. "$ref": "#/definitions/SnapStoreOptions"
  5816. },
  5817. {
  5818. "$ref": "#/definitions/BitbucketOptions"
  5819. },
  5820. {
  5821. "items": {
  5822. "anyOf": [
  5823. {
  5824. "$ref": "#/definitions/GithubOptions"
  5825. },
  5826. {
  5827. "$ref": "#/definitions/S3Options"
  5828. },
  5829. {
  5830. "$ref": "#/definitions/SpacesOptions"
  5831. },
  5832. {
  5833. "$ref": "#/definitions/GenericServerOptions"
  5834. },
  5835. {
  5836. "$ref": "#/definitions/CustomPublishOptions"
  5837. },
  5838. {
  5839. "$ref": "#/definitions/KeygenOptions"
  5840. },
  5841. {
  5842. "$ref": "#/definitions/SnapStoreOptions"
  5843. },
  5844. {
  5845. "$ref": "#/definitions/BitbucketOptions"
  5846. },
  5847. {
  5848. "type": "string"
  5849. }
  5850. ]
  5851. },
  5852. "type": "array"
  5853. },
  5854. {
  5855. "type": [
  5856. "null",
  5857. "string"
  5858. ]
  5859. }
  5860. ]
  5861. },
  5862. "remoteReleases": {
  5863. "description": "A URL to your existing updates. Or `true` to automatically set to your GitHub repository. If given, these will be downloaded to create delta updates.",
  5864. "type": [
  5865. "null",
  5866. "string",
  5867. "boolean"
  5868. ]
  5869. },
  5870. "remoteToken": {
  5871. "description": "Authentication token for remote updates",
  5872. "type": [
  5873. "null",
  5874. "string"
  5875. ]
  5876. },
  5877. "useAppIdAsId": {
  5878. "description": "Use `appId` to identify package instead of `name`.",
  5879. "type": "boolean"
  5880. }
  5881. },
  5882. "type": "object"
  5883. },
  5884. "TargetConfiguration": {
  5885. "additionalProperties": false,
  5886. "properties": {
  5887. "arch": {
  5888. "anyOf": [
  5889. {
  5890. "items": {
  5891. "enum": [
  5892. "arm64",
  5893. "armv7l",
  5894. "ia32",
  5895. "universal",
  5896. "x64"
  5897. ],
  5898. "type": "string"
  5899. },
  5900. "type": "array"
  5901. },
  5902. {
  5903. "enum": [
  5904. "arm64",
  5905. "armv7l",
  5906. "ia32",
  5907. "universal",
  5908. "x64"
  5909. ],
  5910. "type": "string"
  5911. }
  5912. ],
  5913. "description": "The arch or list of archs."
  5914. },
  5915. "target": {
  5916. "description": "The target name. e.g. `snap`.",
  5917. "type": "string"
  5918. }
  5919. },
  5920. "required": [
  5921. "target"
  5922. ],
  5923. "type": "object"
  5924. },
  5925. "WindowsConfiguration": {
  5926. "additionalProperties": false,
  5927. "properties": {
  5928. "additionalCertificateFile": {
  5929. "description": "The path to an additional certificate file you want to add to the signature block.",
  5930. "type": [
  5931. "null",
  5932. "string"
  5933. ]
  5934. },
  5935. "appId": {
  5936. "default": "com.electron.${name}",
  5937. "description": "The application id. Used as [CFBundleIdentifier](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070) for MacOS and as\n[Application User Model ID](https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx) for Windows (NSIS target only, Squirrel.Windows not supported). It is strongly recommended that an explicit ID is set.",
  5938. "type": [
  5939. "null",
  5940. "string"
  5941. ]
  5942. },
  5943. "artifactName": {
  5944. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template). Defaults to `${productName}-${version}.${ext}` (some target can have other defaults, see corresponding options).",
  5945. "type": [
  5946. "null",
  5947. "string"
  5948. ]
  5949. },
  5950. "asar": {
  5951. "anyOf": [
  5952. {
  5953. "$ref": "#/definitions/AsarOptions"
  5954. },
  5955. {
  5956. "type": [
  5957. "null",
  5958. "boolean"
  5959. ]
  5960. }
  5961. ],
  5962. "default": true,
  5963. "description": "Whether to package the application's source code into an archive, using [Electron's archive format](http://electron.atom.io/docs/tutorial/application-packaging/).\n\nNode modules, that must be unpacked, will be detected automatically, you don't need to explicitly set [asarUnpack](#configuration-asarUnpack) - please file an issue if this doesn't work."
  5964. },
  5965. "asarUnpack": {
  5966. "anyOf": [
  5967. {
  5968. "items": {
  5969. "type": "string"
  5970. },
  5971. "type": "array"
  5972. },
  5973. {
  5974. "type": [
  5975. "null",
  5976. "string"
  5977. ]
  5978. }
  5979. ],
  5980. "description": "A [glob patterns](/file-patterns) relative to the [app directory](#MetadataDirectories-app), which specifies which files to unpack when creating the [asar](http://electron.atom.io/docs/tutorial/application-packaging/) archive."
  5981. },
  5982. "certificateFile": {
  5983. "description": "The path to the *.pfx certificate you want to sign with. Please use it only if you cannot use env variable `CSC_LINK` (`WIN_CSC_LINK`) for some reason.\nPlease see [Code Signing](/code-signing).",
  5984. "type": [
  5985. "null",
  5986. "string"
  5987. ]
  5988. },
  5989. "certificatePassword": {
  5990. "description": "The password to the certificate provided in `certificateFile`. Please use it only if you cannot use env variable `CSC_KEY_PASSWORD` (`WIN_CSC_KEY_PASSWORD`) for some reason.\nPlease see [Code Signing](/code-signing).",
  5991. "type": [
  5992. "null",
  5993. "string"
  5994. ]
  5995. },
  5996. "certificateSha1": {
  5997. "description": "The SHA1 hash of the signing certificate. The SHA1 hash is commonly specified when multiple certificates satisfy the criteria specified by the remaining switches. Works only on Windows (or on macOS if [Parallels Desktop](https://www.parallels.com/products/desktop/) Windows 10 virtual machines exits).",
  5998. "type": [
  5999. "null",
  6000. "string"
  6001. ]
  6002. },
  6003. "certificateSubjectName": {
  6004. "description": "The name of the subject of the signing certificate, which is often labeled with the field name `issued to`. Required only for EV Code Signing and works only on Windows (or on macOS if [Parallels Desktop](https://www.parallels.com/products/desktop/) Windows 10 virtual machines exits).",
  6005. "type": [
  6006. "null",
  6007. "string"
  6008. ]
  6009. },
  6010. "compression": {
  6011. "anyOf": [
  6012. {
  6013. "enum": [
  6014. "maximum",
  6015. "normal",
  6016. "store"
  6017. ],
  6018. "type": "string"
  6019. },
  6020. {
  6021. "type": "null"
  6022. }
  6023. ],
  6024. "default": "normal",
  6025. "description": "The compression level. If you want to rapidly test build, `store` can reduce build time significantly. `maximum` doesn't lead to noticeable size difference, but increase build time."
  6026. },
  6027. "cscKeyPassword": {
  6028. "type": [
  6029. "null",
  6030. "string"
  6031. ]
  6032. },
  6033. "cscLink": {
  6034. "type": [
  6035. "null",
  6036. "string"
  6037. ]
  6038. },
  6039. "defaultArch": {
  6040. "type": "string"
  6041. },
  6042. "detectUpdateChannel": {
  6043. "default": true,
  6044. "description": "Whether to infer update channel from application version pre-release components. e.g. if version `0.12.1-alpha.1`, channel will be set to `alpha`. Otherwise to `latest`.",
  6045. "type": "boolean"
  6046. },
  6047. "electronLanguages": {
  6048. "anyOf": [
  6049. {
  6050. "items": {
  6051. "type": "string"
  6052. },
  6053. "type": "array"
  6054. },
  6055. {
  6056. "type": "string"
  6057. }
  6058. ],
  6059. "description": "The electron locales to keep. By default, all Electron locales used as-is."
  6060. },
  6061. "electronUpdaterCompatibility": {
  6062. "description": "The [electron-updater compatibility](/auto-update#compatibility) semver range.",
  6063. "type": [
  6064. "null",
  6065. "string"
  6066. ]
  6067. },
  6068. "executableName": {
  6069. "description": "The executable name. Defaults to `productName`.",
  6070. "type": [
  6071. "null",
  6072. "string"
  6073. ]
  6074. },
  6075. "extraFiles": {
  6076. "anyOf": [
  6077. {
  6078. "$ref": "#/definitions/FileSet"
  6079. },
  6080. {
  6081. "items": {
  6082. "anyOf": [
  6083. {
  6084. "$ref": "#/definitions/FileSet"
  6085. },
  6086. {
  6087. "type": "string"
  6088. }
  6089. ]
  6090. },
  6091. "type": "array"
  6092. },
  6093. {
  6094. "type": [
  6095. "null",
  6096. "string"
  6097. ]
  6098. }
  6099. ]
  6100. },
  6101. "extraResources": {
  6102. "anyOf": [
  6103. {
  6104. "$ref": "#/definitions/FileSet"
  6105. },
  6106. {
  6107. "items": {
  6108. "anyOf": [
  6109. {
  6110. "$ref": "#/definitions/FileSet"
  6111. },
  6112. {
  6113. "type": "string"
  6114. }
  6115. ]
  6116. },
  6117. "type": "array"
  6118. },
  6119. {
  6120. "type": [
  6121. "null",
  6122. "string"
  6123. ]
  6124. }
  6125. ]
  6126. },
  6127. "fileAssociations": {
  6128. "anyOf": [
  6129. {
  6130. "$ref": "#/definitions/FileAssociation"
  6131. },
  6132. {
  6133. "items": {
  6134. "$ref": "#/definitions/FileAssociation"
  6135. },
  6136. "type": "array"
  6137. }
  6138. ],
  6139. "description": "The file associations."
  6140. },
  6141. "files": {
  6142. "anyOf": [
  6143. {
  6144. "$ref": "#/definitions/FileSet"
  6145. },
  6146. {
  6147. "items": {
  6148. "anyOf": [
  6149. {
  6150. "$ref": "#/definitions/FileSet"
  6151. },
  6152. {
  6153. "type": "string"
  6154. }
  6155. ]
  6156. },
  6157. "type": "array"
  6158. },
  6159. {
  6160. "type": [
  6161. "null",
  6162. "string"
  6163. ]
  6164. }
  6165. ]
  6166. },
  6167. "forceCodeSigning": {
  6168. "description": "Whether to fail if app will be not code signed.",
  6169. "type": "boolean"
  6170. },
  6171. "generateUpdatesFilesForAllChannels": {
  6172. "default": false,
  6173. "description": "Please see [Building and Releasing using Channels](https://github.com/electron-userland/electron-builder/issues/1182#issuecomment-324947139).",
  6174. "type": "boolean"
  6175. },
  6176. "icon": {
  6177. "default": "build/icon.ico",
  6178. "description": "The path to application icon.",
  6179. "type": [
  6180. "null",
  6181. "string"
  6182. ]
  6183. },
  6184. "legalTrademarks": {
  6185. "description": "The trademarks and registered trademarks.",
  6186. "type": [
  6187. "null",
  6188. "string"
  6189. ]
  6190. },
  6191. "protocols": {
  6192. "anyOf": [
  6193. {
  6194. "$ref": "#/definitions/Protocol"
  6195. },
  6196. {
  6197. "items": {
  6198. "$ref": "#/definitions/Protocol"
  6199. },
  6200. "type": "array"
  6201. }
  6202. ],
  6203. "description": "The URL protocol schemes."
  6204. },
  6205. "publish": {
  6206. "anyOf": [
  6207. {
  6208. "$ref": "#/definitions/GithubOptions"
  6209. },
  6210. {
  6211. "$ref": "#/definitions/S3Options"
  6212. },
  6213. {
  6214. "$ref": "#/definitions/SpacesOptions"
  6215. },
  6216. {
  6217. "$ref": "#/definitions/GenericServerOptions"
  6218. },
  6219. {
  6220. "$ref": "#/definitions/CustomPublishOptions"
  6221. },
  6222. {
  6223. "$ref": "#/definitions/KeygenOptions"
  6224. },
  6225. {
  6226. "$ref": "#/definitions/SnapStoreOptions"
  6227. },
  6228. {
  6229. "$ref": "#/definitions/BitbucketOptions"
  6230. },
  6231. {
  6232. "items": {
  6233. "anyOf": [
  6234. {
  6235. "$ref": "#/definitions/GithubOptions"
  6236. },
  6237. {
  6238. "$ref": "#/definitions/S3Options"
  6239. },
  6240. {
  6241. "$ref": "#/definitions/SpacesOptions"
  6242. },
  6243. {
  6244. "$ref": "#/definitions/GenericServerOptions"
  6245. },
  6246. {
  6247. "$ref": "#/definitions/CustomPublishOptions"
  6248. },
  6249. {
  6250. "$ref": "#/definitions/KeygenOptions"
  6251. },
  6252. {
  6253. "$ref": "#/definitions/SnapStoreOptions"
  6254. },
  6255. {
  6256. "$ref": "#/definitions/BitbucketOptions"
  6257. },
  6258. {
  6259. "type": "string"
  6260. }
  6261. ]
  6262. },
  6263. "type": "array"
  6264. },
  6265. {
  6266. "type": [
  6267. "null",
  6268. "string"
  6269. ]
  6270. }
  6271. ]
  6272. },
  6273. "publisherName": {
  6274. "anyOf": [
  6275. {
  6276. "items": {
  6277. "type": "string"
  6278. },
  6279. "type": "array"
  6280. },
  6281. {
  6282. "type": [
  6283. "null",
  6284. "string"
  6285. ]
  6286. }
  6287. ],
  6288. "description": "[The publisher name](https://github.com/electron-userland/electron-builder/issues/1187#issuecomment-278972073), exactly as in your code signed certificate. Several names can be provided.\nDefaults to common name from your code signing certificate."
  6289. },
  6290. "releaseInfo": {
  6291. "$ref": "#/definitions/ReleaseInfo",
  6292. "description": "The release info. Intended for command line usage:\n\n```\n-c.releaseInfo.releaseNotes=\"new features\"\n```"
  6293. },
  6294. "requestedExecutionLevel": {
  6295. "anyOf": [
  6296. {
  6297. "enum": [
  6298. "asInvoker",
  6299. "highestAvailable",
  6300. "requireAdministrator"
  6301. ],
  6302. "type": "string"
  6303. },
  6304. {
  6305. "type": "null"
  6306. }
  6307. ],
  6308. "default": "asInvoker",
  6309. "description": "The [security level](https://msdn.microsoft.com/en-us/library/6ad1fshk.aspx#Anchor_9) at which the application requests to be executed.\nCannot be specified per target, allowed only in the `win`."
  6310. },
  6311. "rfc3161TimeStampServer": {
  6312. "default": "http://timestamp.digicert.com",
  6313. "description": "The URL of the RFC 3161 time stamp server.",
  6314. "type": [
  6315. "null",
  6316. "string"
  6317. ]
  6318. },
  6319. "sign": {
  6320. "anyOf": [
  6321. {
  6322. "typeof": "function"
  6323. },
  6324. {
  6325. "type": [
  6326. "null",
  6327. "string"
  6328. ]
  6329. }
  6330. ],
  6331. "description": "The custom function (or path to file or module id) to sign Windows executable."
  6332. },
  6333. "signAndEditExecutable": {
  6334. "default": true,
  6335. "description": "Whether to sign and add metadata to executable. Advanced option.",
  6336. "type": "boolean"
  6337. },
  6338. "signDlls": {
  6339. "default": false,
  6340. "description": "Whether to sign DLL files. Advanced option.",
  6341. "type": "boolean"
  6342. },
  6343. "signExts": {
  6344. "anyOf": [
  6345. {
  6346. "items": {
  6347. "type": "string"
  6348. },
  6349. "type": "array"
  6350. },
  6351. {
  6352. "type": "null"
  6353. }
  6354. ],
  6355. "default": null,
  6356. "description": "Explicit file extensions to also sign. Advanced option."
  6357. },
  6358. "signingHashAlgorithms": {
  6359. "anyOf": [
  6360. {
  6361. "items": {
  6362. "enum": [
  6363. "sha1",
  6364. "sha256"
  6365. ],
  6366. "type": "string"
  6367. },
  6368. "type": "array"
  6369. },
  6370. {
  6371. "type": "null"
  6372. }
  6373. ],
  6374. "default": "['sha1', 'sha256']",
  6375. "description": "Array of signing algorithms used. For AppX `sha256` is always used."
  6376. },
  6377. "target": {
  6378. "anyOf": [
  6379. {
  6380. "$ref": "#/definitions/TargetConfiguration"
  6381. },
  6382. {
  6383. "items": {
  6384. "anyOf": [
  6385. {
  6386. "$ref": "#/definitions/TargetConfiguration"
  6387. },
  6388. {
  6389. "type": "string"
  6390. }
  6391. ]
  6392. },
  6393. "type": "array"
  6394. },
  6395. {
  6396. "type": [
  6397. "null",
  6398. "string"
  6399. ]
  6400. }
  6401. ],
  6402. "default": "nsis",
  6403. "description": "The target package type: list of `nsis`, `nsis-web` (Web installer), `portable` ([portable](/configuration/nsis#portable) app without installation), `appx`, `msi`, `squirrel`, `7z`, `zip`, `tar.xz`, `tar.lz`, `tar.gz`, `tar.bz2`, `dir`.\nAppX package can be built only on Windows 10.\n\nTo use Squirrel.Windows please install `electron-builder-squirrel-windows` dependency."
  6404. },
  6405. "timeStampServer": {
  6406. "default": "http://timestamp.digicert.com",
  6407. "description": "The URL of the time stamp server.",
  6408. "type": [
  6409. "null",
  6410. "string"
  6411. ]
  6412. },
  6413. "verifyUpdateCodeSignature": {
  6414. "default": true,
  6415. "description": "Whether to verify the signature of an available update before installation.\nThe [publisher name](#publisherName) will be used for the signature verification.",
  6416. "type": "boolean"
  6417. }
  6418. },
  6419. "type": "object"
  6420. }
  6421. },
  6422. "description": "Configuration Options",
  6423. "properties": {
  6424. "afterAllArtifactBuild": {
  6425. "anyOf": [
  6426. {
  6427. "typeof": "function"
  6428. },
  6429. {
  6430. "type": [
  6431. "null",
  6432. "string"
  6433. ]
  6434. }
  6435. ],
  6436. "description": "The function (or path to file or module id) to be [run after all artifacts are build](#afterAllArtifactBuild)."
  6437. },
  6438. "afterPack": {
  6439. "anyOf": [
  6440. {
  6441. "typeof": "function"
  6442. },
  6443. {
  6444. "type": [
  6445. "null",
  6446. "string"
  6447. ]
  6448. }
  6449. ],
  6450. "description": "The function (or path to file or module id) to be [run after pack](#afterpack) (but before pack into distributable format and sign)."
  6451. },
  6452. "afterSign": {
  6453. "anyOf": [
  6454. {
  6455. "typeof": "function"
  6456. },
  6457. {
  6458. "type": [
  6459. "null",
  6460. "string"
  6461. ]
  6462. }
  6463. ],
  6464. "description": "The function (or path to file or module id) to be [run after pack and sign](#aftersign) (but before pack into distributable format)."
  6465. },
  6466. "apk": {
  6467. "anyOf": [
  6468. {
  6469. "$ref": "#/definitions/LinuxTargetSpecificOptions"
  6470. },
  6471. {
  6472. "type": "null"
  6473. }
  6474. ]
  6475. },
  6476. "appId": {
  6477. "default": "com.electron.${name}",
  6478. "description": "The application id. Used as [CFBundleIdentifier](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070) for MacOS and as\n[Application User Model ID](https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx) for Windows (NSIS target only, Squirrel.Windows not supported). It is strongly recommended that an explicit ID is set.",
  6479. "type": [
  6480. "null",
  6481. "string"
  6482. ]
  6483. },
  6484. "appImage": {
  6485. "anyOf": [
  6486. {
  6487. "$ref": "#/definitions/AppImageOptions"
  6488. },
  6489. {
  6490. "type": "null"
  6491. }
  6492. ],
  6493. "description": "AppImage options."
  6494. },
  6495. "appx": {
  6496. "anyOf": [
  6497. {
  6498. "$ref": "#/definitions/AppXOptions"
  6499. },
  6500. {
  6501. "type": "null"
  6502. }
  6503. ]
  6504. },
  6505. "appxManifestCreated": {
  6506. "anyOf": [
  6507. {
  6508. "typeof": "function"
  6509. },
  6510. {
  6511. "type": [
  6512. "null",
  6513. "string"
  6514. ]
  6515. }
  6516. ],
  6517. "description": "Appx manifest created on disk - not packed into .appx package yet."
  6518. },
  6519. "artifactBuildCompleted": {
  6520. "anyOf": [
  6521. {
  6522. "typeof": "function"
  6523. },
  6524. {
  6525. "type": [
  6526. "null",
  6527. "string"
  6528. ]
  6529. }
  6530. ],
  6531. "description": "The function (or path to file or module id) to be run on artifact build completed."
  6532. },
  6533. "artifactBuildStarted": {
  6534. "anyOf": [
  6535. {
  6536. "typeof": "function"
  6537. },
  6538. {
  6539. "type": [
  6540. "null",
  6541. "string"
  6542. ]
  6543. }
  6544. ],
  6545. "description": "The function (or path to file or module id) to be run on artifact build start."
  6546. },
  6547. "artifactName": {
  6548. "description": "The [artifact file name template](/configuration/configuration#artifact-file-name-template). Defaults to `${productName}-${version}.${ext}` (some target can have other defaults, see corresponding options).",
  6549. "type": [
  6550. "null",
  6551. "string"
  6552. ]
  6553. },
  6554. "asar": {
  6555. "anyOf": [
  6556. {
  6557. "$ref": "#/definitions/AsarOptions"
  6558. },
  6559. {
  6560. "type": [
  6561. "null",
  6562. "boolean"
  6563. ]
  6564. }
  6565. ],
  6566. "default": true,
  6567. "description": "Whether to package the application's source code into an archive, using [Electron's archive format](http://electron.atom.io/docs/tutorial/application-packaging/).\n\nNode modules, that must be unpacked, will be detected automatically, you don't need to explicitly set [asarUnpack](#configuration-asarUnpack) - please file an issue if this doesn't work."
  6568. },
  6569. "asarUnpack": {
  6570. "anyOf": [
  6571. {
  6572. "items": {
  6573. "type": "string"
  6574. },
  6575. "type": "array"
  6576. },
  6577. {
  6578. "type": [
  6579. "null",
  6580. "string"
  6581. ]
  6582. }
  6583. ],
  6584. "description": "A [glob patterns](/file-patterns) relative to the [app directory](#MetadataDirectories-app), which specifies which files to unpack when creating the [asar](http://electron.atom.io/docs/tutorial/application-packaging/) archive."
  6585. },
  6586. "beforeBuild": {
  6587. "anyOf": [
  6588. {
  6589. "typeof": "function"
  6590. },
  6591. {
  6592. "type": [
  6593. "null",
  6594. "string"
  6595. ]
  6596. }
  6597. ],
  6598. "description": "The function (or path to file or module id) to be run before dependencies are installed or rebuilt. Works when `npmRebuild` is set to `true`. Resolving to `false` will skip dependencies install or rebuild.\n\nIf provided and `node_modules` are missing, it will not invoke production dependencies check."
  6599. },
  6600. "beforePack": {
  6601. "anyOf": [
  6602. {
  6603. "typeof": "function"
  6604. },
  6605. {
  6606. "type": [
  6607. "null",
  6608. "string"
  6609. ]
  6610. }
  6611. ],
  6612. "description": "The function (or path to file or module id) to be [run before pack](#beforepack)"
  6613. },
  6614. "buildDependenciesFromSource": {
  6615. "default": false,
  6616. "description": "Whether to build the application native dependencies from source.",
  6617. "type": "boolean"
  6618. },
  6619. "buildNumber": {
  6620. "description": "The build number. Maps to the `--iteration` flag for builds using FPM on Linux.\nIf not defined, then it will fallback to `BUILD_NUMBER` or `TRAVIS_BUILD_NUMBER` or `APPVEYOR_BUILD_NUMBER` or `CIRCLE_BUILD_NUM` or `BUILD_BUILDNUMBER` or `CI_PIPELINE_IID` env.",
  6621. "type": [
  6622. "null",
  6623. "string"
  6624. ]
  6625. },
  6626. "buildVersion": {
  6627. "description": "The build version. Maps to the `CFBundleVersion` on macOS, and `FileVersion` metadata property on Windows. Defaults to the `version`.\nIf `buildVersion` is not defined and `buildNumber` (or one of the `buildNumber` envs) is defined, it will be used as a build version (`version.buildNumber`).",
  6628. "type": [
  6629. "null",
  6630. "string"
  6631. ]
  6632. },
  6633. "compression": {
  6634. "anyOf": [
  6635. {
  6636. "enum": [
  6637. "maximum",
  6638. "normal",
  6639. "store"
  6640. ],
  6641. "type": "string"
  6642. },
  6643. {
  6644. "type": "null"
  6645. }
  6646. ],
  6647. "default": "normal",
  6648. "description": "The compression level. If you want to rapidly test build, `store` can reduce build time significantly. `maximum` doesn't lead to noticeable size difference, but increase build time."
  6649. },
  6650. "copyright": {
  6651. "default": "Copyright © year ${author}",
  6652. "description": "The human-readable copyright line for the app.",
  6653. "type": [
  6654. "null",
  6655. "string"
  6656. ]
  6657. },
  6658. "cscKeyPassword": {
  6659. "type": [
  6660. "null",
  6661. "string"
  6662. ]
  6663. },
  6664. "cscLink": {
  6665. "type": [
  6666. "null",
  6667. "string"
  6668. ]
  6669. },
  6670. "deb": {
  6671. "anyOf": [
  6672. {
  6673. "$ref": "#/definitions/DebOptions"
  6674. },
  6675. {
  6676. "type": "null"
  6677. }
  6678. ],
  6679. "description": "Debian package options."
  6680. },
  6681. "defaultArch": {
  6682. "type": "string"
  6683. },
  6684. "detectUpdateChannel": {
  6685. "default": true,
  6686. "description": "Whether to infer update channel from application version pre-release components. e.g. if version `0.12.1-alpha.1`, channel will be set to `alpha`. Otherwise to `latest`.",
  6687. "type": "boolean"
  6688. },
  6689. "directories": {
  6690. "anyOf": [
  6691. {
  6692. "$ref": "#/definitions/MetadataDirectories"
  6693. },
  6694. {
  6695. "type": "null"
  6696. }
  6697. ]
  6698. },
  6699. "dmg": {
  6700. "anyOf": [
  6701. {
  6702. "$ref": "#/definitions/DmgOptions"
  6703. },
  6704. {
  6705. "type": "null"
  6706. }
  6707. ],
  6708. "description": "macOS DMG options."
  6709. },
  6710. "downloadAlternateFFmpeg": {
  6711. "description": "Whether to download the alternate FFmpeg library from Electron's release assets and replace the default FFmpeg library prior to signing",
  6712. "type": "boolean"
  6713. },
  6714. "electronBranding": {
  6715. "$ref": "#/definitions/ElectronBrandingOptions",
  6716. "description": "The branding used by Electron's distributables. This is needed if a fork has modified Electron's BRANDING.json file."
  6717. },
  6718. "electronCompile": {
  6719. "description": "Whether to use [electron-compile](http://github.com/electron/electron-compile) to compile app. Defaults to `true` if `electron-compile` in the dependencies. And `false` if in the `devDependencies` or doesn't specified.",
  6720. "type": "boolean"
  6721. },
  6722. "electronDist": {
  6723. "anyOf": [
  6724. {
  6725. "typeof": "function"
  6726. },
  6727. {
  6728. "type": "string"
  6729. }
  6730. ],
  6731. "description": "Returns the path to custom Electron build (e.g. `~/electron/out/R`). Zip files must follow the pattern `electron-v${version}-${platformName}-${arch}.zip`, otherwise it will be assumed to be an unpacked Electron app directory"
  6732. },
  6733. "electronDownload": {
  6734. "$ref": "#/definitions/ElectronDownloadOptions",
  6735. "description": "The [electron-download](https://github.com/electron-userland/electron-download#usage) options."
  6736. },
  6737. "electronLanguages": {
  6738. "anyOf": [
  6739. {
  6740. "items": {
  6741. "type": "string"
  6742. },
  6743. "type": "array"
  6744. },
  6745. {
  6746. "type": "string"
  6747. }
  6748. ],
  6749. "description": "The electron locales to keep. By default, all Electron locales used as-is."
  6750. },
  6751. "electronUpdaterCompatibility": {
  6752. "description": "The [electron-updater compatibility](/auto-update#compatibility) semver range.",
  6753. "type": [
  6754. "null",
  6755. "string"
  6756. ]
  6757. },
  6758. "electronVersion": {
  6759. "description": "The version of electron you are packaging for. Defaults to version of `electron`, `electron-prebuilt` or `electron-prebuilt-compile` dependency.",
  6760. "type": [
  6761. "null",
  6762. "string"
  6763. ]
  6764. },
  6765. "executableName": {
  6766. "description": "The executable name. Defaults to `productName`.",
  6767. "type": [
  6768. "null",
  6769. "string"
  6770. ]
  6771. },
  6772. "extends": {
  6773. "anyOf": [
  6774. {
  6775. "items": {
  6776. "type": "string"
  6777. },
  6778. "type": "array"
  6779. },
  6780. {
  6781. "type": [
  6782. "null",
  6783. "string"
  6784. ]
  6785. }
  6786. ],
  6787. "description": "The name of a built-in configuration preset (currently, only `react-cra` is supported) or any number of paths to config files (relative to project dir).\n\nThe latter allows to mixin a config from multiple other configs, as if you `Object.assign` them, but properly combine `files` glob patterns.\n\nIf `react-scripts` in the app dependencies, `react-cra` will be set automatically. Set to `null` to disable automatic detection."
  6788. },
  6789. "extraFiles": {
  6790. "anyOf": [
  6791. {
  6792. "$ref": "#/definitions/FileSet"
  6793. },
  6794. {
  6795. "items": {
  6796. "anyOf": [
  6797. {
  6798. "$ref": "#/definitions/FileSet"
  6799. },
  6800. {
  6801. "type": "string"
  6802. }
  6803. ]
  6804. },
  6805. "type": "array"
  6806. },
  6807. {
  6808. "type": [
  6809. "null",
  6810. "string"
  6811. ]
  6812. }
  6813. ]
  6814. },
  6815. "extraMetadata": {
  6816. "description": "Inject properties to `package.json`."
  6817. },
  6818. "extraResources": {
  6819. "anyOf": [
  6820. {
  6821. "$ref": "#/definitions/FileSet"
  6822. },
  6823. {
  6824. "items": {
  6825. "anyOf": [
  6826. {
  6827. "$ref": "#/definitions/FileSet"
  6828. },
  6829. {
  6830. "type": "string"
  6831. }
  6832. ]
  6833. },
  6834. "type": "array"
  6835. },
  6836. {
  6837. "type": [
  6838. "null",
  6839. "string"
  6840. ]
  6841. }
  6842. ]
  6843. },
  6844. "fileAssociations": {
  6845. "anyOf": [
  6846. {
  6847. "$ref": "#/definitions/FileAssociation"
  6848. },
  6849. {
  6850. "items": {
  6851. "$ref": "#/definitions/FileAssociation"
  6852. },
  6853. "type": "array"
  6854. }
  6855. ],
  6856. "description": "The file associations."
  6857. },
  6858. "files": {
  6859. "anyOf": [
  6860. {
  6861. "$ref": "#/definitions/FileSet"
  6862. },
  6863. {
  6864. "items": {
  6865. "anyOf": [
  6866. {
  6867. "$ref": "#/definitions/FileSet"
  6868. },
  6869. {
  6870. "type": "string"
  6871. }
  6872. ]
  6873. },
  6874. "type": "array"
  6875. },
  6876. {
  6877. "type": [
  6878. "null",
  6879. "string"
  6880. ]
  6881. }
  6882. ]
  6883. },
  6884. "flatpak": {
  6885. "anyOf": [
  6886. {
  6887. "$ref": "#/definitions/FlatpakOptions"
  6888. },
  6889. {
  6890. "type": "null"
  6891. }
  6892. ],
  6893. "description": "Flatpak options."
  6894. },
  6895. "forceCodeSigning": {
  6896. "default": false,
  6897. "description": "Whether to fail if the application is not signed (to prevent unsigned app if code signing configuration is not correct).",
  6898. "type": "boolean"
  6899. },
  6900. "framework": {
  6901. "description": "The framework name. One of `electron`, `proton`, `libui`. Defaults to `electron`.",
  6902. "type": [
  6903. "null",
  6904. "string"
  6905. ]
  6906. },
  6907. "freebsd": {
  6908. "anyOf": [
  6909. {
  6910. "$ref": "#/definitions/LinuxTargetSpecificOptions"
  6911. },
  6912. {
  6913. "type": "null"
  6914. }
  6915. ]
  6916. },
  6917. "generateUpdatesFilesForAllChannels": {
  6918. "default": false,
  6919. "description": "Please see [Building and Releasing using Channels](https://github.com/electron-userland/electron-builder/issues/1182#issuecomment-324947139).",
  6920. "type": "boolean"
  6921. },
  6922. "icon": {
  6923. "type": [
  6924. "null",
  6925. "string"
  6926. ]
  6927. },
  6928. "includePdb": {
  6929. "default": false,
  6930. "description": "Whether to include PDB files.",
  6931. "type": "boolean"
  6932. },
  6933. "includeSubNodeModules": {
  6934. "default": false,
  6935. "description": "Whether to include *all* of the submodules node_modules directories",
  6936. "type": "boolean"
  6937. },
  6938. "launchUiVersion": {
  6939. "description": "*libui-based frameworks only* The version of LaunchUI you are packaging for. Applicable for Windows only. Defaults to version suitable for used framework version.",
  6940. "type": [
  6941. "null",
  6942. "string",
  6943. "boolean"
  6944. ]
  6945. },
  6946. "linux": {
  6947. "anyOf": [
  6948. {
  6949. "$ref": "#/definitions/LinuxConfiguration"
  6950. },
  6951. {
  6952. "type": "null"
  6953. }
  6954. ],
  6955. "description": "Options related to how build Linux targets."
  6956. },
  6957. "mac": {
  6958. "anyOf": [
  6959. {
  6960. "$ref": "#/definitions/MacConfiguration"
  6961. },
  6962. {
  6963. "type": "null"
  6964. }
  6965. ],
  6966. "description": "Options related to how build macOS targets."
  6967. },
  6968. "mas": {
  6969. "anyOf": [
  6970. {
  6971. "$ref": "#/definitions/MasConfiguration"
  6972. },
  6973. {
  6974. "type": "null"
  6975. }
  6976. ],
  6977. "description": "MAS (Mac Application Store) options."
  6978. },
  6979. "masDev": {
  6980. "anyOf": [
  6981. {
  6982. "$ref": "#/definitions/MasConfiguration"
  6983. },
  6984. {
  6985. "type": "null"
  6986. }
  6987. ],
  6988. "description": "MAS (Mac Application Store) development options (`mas-dev` target)."
  6989. },
  6990. "msi": {
  6991. "anyOf": [
  6992. {
  6993. "$ref": "#/definitions/MsiOptions"
  6994. },
  6995. {
  6996. "type": "null"
  6997. }
  6998. ]
  6999. },
  7000. "msiProjectCreated": {
  7001. "anyOf": [
  7002. {
  7003. "typeof": "function"
  7004. },
  7005. {
  7006. "type": [
  7007. "null",
  7008. "string"
  7009. ]
  7010. }
  7011. ],
  7012. "description": "MSI project created on disk - not packed into .msi package yet."
  7013. },
  7014. "msiWrapped": {
  7015. "anyOf": [
  7016. {
  7017. "$ref": "#/definitions/MsiWrappedOptions"
  7018. },
  7019. {
  7020. "type": "null"
  7021. }
  7022. ]
  7023. },
  7024. "nodeGypRebuild": {
  7025. "default": false,
  7026. "description": "Whether to execute `node-gyp rebuild` before starting to package the app.\n\nDon't [use](https://github.com/electron-userland/electron-builder/issues/683#issuecomment-241214075) [npm](http://electron.atom.io/docs/tutorial/using-native-node-modules/#using-npm) (neither `.npmrc`) for configuring electron headers. Use `electron-builder node-gyp-rebuild` instead.",
  7027. "type": "boolean"
  7028. },
  7029. "nodeVersion": {
  7030. "description": "*libui-based frameworks only* The version of NodeJS you are packaging for.\nYou can set it to `current` to set the Node.js version that you use to run.",
  7031. "type": [
  7032. "null",
  7033. "string"
  7034. ]
  7035. },
  7036. "npmArgs": {
  7037. "anyOf": [
  7038. {
  7039. "items": {
  7040. "type": "string"
  7041. },
  7042. "type": "array"
  7043. },
  7044. {
  7045. "type": [
  7046. "null",
  7047. "string"
  7048. ]
  7049. }
  7050. ],
  7051. "description": "Additional command line arguments to use when installing app native deps."
  7052. },
  7053. "npmRebuild": {
  7054. "default": true,
  7055. "description": "Whether to [rebuild](https://docs.npmjs.com/cli/rebuild) native dependencies before starting to package the app.",
  7056. "type": "boolean"
  7057. },
  7058. "nsis": {
  7059. "anyOf": [
  7060. {
  7061. "$ref": "#/definitions/NsisOptions"
  7062. },
  7063. {
  7064. "type": "null"
  7065. }
  7066. ]
  7067. },
  7068. "nsisWeb": {
  7069. "anyOf": [
  7070. {
  7071. "$ref": "#/definitions/NsisWebOptions"
  7072. },
  7073. {
  7074. "type": "null"
  7075. }
  7076. ]
  7077. },
  7078. "onNodeModuleFile": {
  7079. "anyOf": [
  7080. {
  7081. "typeof": "function"
  7082. },
  7083. {
  7084. "type": [
  7085. "null",
  7086. "string"
  7087. ]
  7088. }
  7089. ],
  7090. "description": "The function (or path to file or module id) to be [run on each node module](#onnodemodulefile) file."
  7091. },
  7092. "p5p": {
  7093. "anyOf": [
  7094. {
  7095. "$ref": "#/definitions/LinuxTargetSpecificOptions"
  7096. },
  7097. {
  7098. "type": "null"
  7099. }
  7100. ]
  7101. },
  7102. "pacman": {
  7103. "anyOf": [
  7104. {
  7105. "$ref": "#/definitions/LinuxTargetSpecificOptions"
  7106. },
  7107. {
  7108. "type": "null"
  7109. }
  7110. ]
  7111. },
  7112. "pkg": {
  7113. "anyOf": [
  7114. {
  7115. "$ref": "#/definitions/PkgOptions"
  7116. },
  7117. {
  7118. "type": "null"
  7119. }
  7120. ],
  7121. "description": "macOS PKG options."
  7122. },
  7123. "portable": {
  7124. "anyOf": [
  7125. {
  7126. "$ref": "#/definitions/PortableOptions"
  7127. },
  7128. {
  7129. "type": "null"
  7130. }
  7131. ]
  7132. },
  7133. "productName": {
  7134. "description": "As [name](#Metadata-name), but allows you to specify a product name for your executable which contains spaces and other special characters not allowed in the [name property](https://docs.npmjs.com/files/package.json#name).\nIf not specified inside of the `build` configuration, `productName` property defined at the top level of `package.json` is used. If not specified at the top level of `package.json`, [name property](https://docs.npmjs.com/files/package.json#name) is used.",
  7135. "type": [
  7136. "null",
  7137. "string"
  7138. ]
  7139. },
  7140. "protocols": {
  7141. "anyOf": [
  7142. {
  7143. "$ref": "#/definitions/Protocol"
  7144. },
  7145. {
  7146. "items": {
  7147. "$ref": "#/definitions/Protocol"
  7148. },
  7149. "type": "array"
  7150. }
  7151. ],
  7152. "description": "The URL protocol schemes."
  7153. },
  7154. "publish": {
  7155. "anyOf": [
  7156. {
  7157. "$ref": "#/definitions/GithubOptions"
  7158. },
  7159. {
  7160. "$ref": "#/definitions/S3Options"
  7161. },
  7162. {
  7163. "$ref": "#/definitions/SpacesOptions"
  7164. },
  7165. {
  7166. "$ref": "#/definitions/GenericServerOptions"
  7167. },
  7168. {
  7169. "$ref": "#/definitions/CustomPublishOptions"
  7170. },
  7171. {
  7172. "$ref": "#/definitions/KeygenOptions"
  7173. },
  7174. {
  7175. "$ref": "#/definitions/SnapStoreOptions"
  7176. },
  7177. {
  7178. "$ref": "#/definitions/BitbucketOptions"
  7179. },
  7180. {
  7181. "items": {
  7182. "anyOf": [
  7183. {
  7184. "$ref": "#/definitions/GithubOptions"
  7185. },
  7186. {
  7187. "$ref": "#/definitions/S3Options"
  7188. },
  7189. {
  7190. "$ref": "#/definitions/SpacesOptions"
  7191. },
  7192. {
  7193. "$ref": "#/definitions/GenericServerOptions"
  7194. },
  7195. {
  7196. "$ref": "#/definitions/CustomPublishOptions"
  7197. },
  7198. {
  7199. "$ref": "#/definitions/KeygenOptions"
  7200. },
  7201. {
  7202. "$ref": "#/definitions/SnapStoreOptions"
  7203. },
  7204. {
  7205. "$ref": "#/definitions/BitbucketOptions"
  7206. },
  7207. {
  7208. "type": "string"
  7209. }
  7210. ]
  7211. },
  7212. "type": "array"
  7213. },
  7214. {
  7215. "type": [
  7216. "null",
  7217. "string"
  7218. ]
  7219. }
  7220. ]
  7221. },
  7222. "releaseInfo": {
  7223. "$ref": "#/definitions/ReleaseInfo",
  7224. "description": "The release info. Intended for command line usage:\n\n```\n-c.releaseInfo.releaseNotes=\"new features\"\n```"
  7225. },
  7226. "removePackageKeywords": {
  7227. "default": true,
  7228. "description": "Whether to remove `keywords` field from `package.json` files.",
  7229. "type": "boolean"
  7230. },
  7231. "removePackageScripts": {
  7232. "default": true,
  7233. "description": "Whether to remove `scripts` field from `package.json` files.",
  7234. "type": "boolean"
  7235. },
  7236. "rpm": {
  7237. "anyOf": [
  7238. {
  7239. "$ref": "#/definitions/LinuxTargetSpecificOptions"
  7240. },
  7241. {
  7242. "type": "null"
  7243. }
  7244. ]
  7245. },
  7246. "snap": {
  7247. "anyOf": [
  7248. {
  7249. "$ref": "#/definitions/SnapOptions"
  7250. },
  7251. {
  7252. "type": "null"
  7253. }
  7254. ],
  7255. "description": "Snap options."
  7256. },
  7257. "squirrelWindows": {
  7258. "anyOf": [
  7259. {
  7260. "$ref": "#/definitions/SquirrelWindowsOptions"
  7261. },
  7262. {
  7263. "type": "null"
  7264. }
  7265. ]
  7266. },
  7267. "target": {
  7268. "anyOf": [
  7269. {
  7270. "$ref": "#/definitions/TargetConfiguration"
  7271. },
  7272. {
  7273. "items": {
  7274. "anyOf": [
  7275. {
  7276. "$ref": "#/definitions/TargetConfiguration"
  7277. },
  7278. {
  7279. "type": "string"
  7280. }
  7281. ]
  7282. },
  7283. "type": "array"
  7284. },
  7285. {
  7286. "type": [
  7287. "null",
  7288. "string"
  7289. ]
  7290. }
  7291. ]
  7292. },
  7293. "win": {
  7294. "anyOf": [
  7295. {
  7296. "$ref": "#/definitions/WindowsConfiguration"
  7297. },
  7298. {
  7299. "type": "null"
  7300. }
  7301. ],
  7302. "description": "Options related to how build Windows targets."
  7303. },
  7304. "$schema": {
  7305. "description": "JSON Schema for this document.",
  7306. "type": [
  7307. "null",
  7308. "string"
  7309. ]
  7310. }
  7311. },
  7312. "type": "object"
  7313. }