thedesk/app/node_modules/app-builder-lib/out/targets/targetFactory.js.map

2 lines
6.8 KiB
Plaintext
Raw Normal View History

2019-09-13 00:38:13 +10:00
{"version":3,"sources":["../../src/targets/targetFactory.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAEA,MAAM,cAAc,GAAG,IAAI,GAAJ,CAAQ,CAAC,KAAD,EAAQ,IAAR,EAAc,QAAd,EAAwB,QAAxB,EAAkC,QAAlC,EAA4C,SAA5C,CAAR,CAAvB;;AAEM,SAAU,2BAAV,CAAsC,GAAtC,EAAqE,gBAArE,EAA8G,QAA9G,EAAgI;AACpI,OAAK,MAAM,WAAX,IAA0B,GAAG,CAAC,MAAJ,EAA1B,EAAwC;AACtC,QAAI,WAAW,CAAC,MAAZ,GAAqB,CAAzB,EAA4B;AAC1B;AACA,aAAO,GAAP;AACD;AACF;;AAED,QAAM,YAAY,GAAoB,GAAG,CAAC,IAAJ,KAAa,CAAb,GAAiB,CAAC,QAAQ,KAAK,aAAS,GAAtB,GAA4B,KAA5B,GAAoC,OAAO,CAAC,IAA7C,CAAjB,GAAkF,KAAK,CAAC,IAAN,CAAW,GAAG,CAAC,IAAJ,EAAX,EAAuB,GAAvB,CAA2B,EAAE,IAAI,oBAAK,EAAL,CAAjC,CAAxH;AACA,QAAM,MAAM,GAAG,IAAI,GAAJ,CAAQ,GAAR,CAAf;;AACA,OAAK,MAAM,MAAX,IAAqB,4BAAQ,gBAAgB,CAAC,4BAAjB,CAA8C,MAAtD,EAA8D,GAA9D,CAAuF,EAAE,IAAI,OAAO,EAAP,KAAc,QAAd,GAAyB;AAAC,IAAA,MAAM,EAAE;AAAT,GAAzB,GAAwC,EAArI,CAArB,EAA+J;AAC7J,QAAI,IAAI,GAAG,MAAM,CAAC,MAAlB;AACA,QAAI,K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IAAZ,EAAwB;AACtB,UAAM,IAAN;AAHO,SAAA,OAAA,GAAU,IAAV;AAIR;;AAED,MAAI,MAAJ,GAAU;AACR,UAAM,IAAI,KAAJ,CAAU,YAAV,CAAN;AACD;;AAED,QAAM,KAAN,CAAY,SAAZ,EAA+B,IAA/B,EAAyC,CACvC;AACD;;AAbmC,C","sourcesContent":["import { addValue, Arch, archFromString, ArchType, asArray } from \"builder-util\"\nimport { DEFAULT_TARGET, DIR_TARGET, Platform, Target, TargetConfiguration } from \"..\"\nimport { PlatformPackager } from \"../platformPackager\"\nimport { ArchiveTarget } from \"./ArchiveTarget\"\n\nconst archiveTargets = new Set([\"zip\", \"7z\", \"tar.xz\", \"tar.lz\", \"tar.gz\", \"tar.bz2\"])\n\nexport function computeArchToTargetNamesMap(raw: Map<Arch, Array<string>>, platformPackager: PlatformPackager<any>, platform: Platform): Map<Arch, Array<string>> {\n for (const targetNames of raw.values()) {\n if (targetNames.length > 0) {\n // https://github.com/electron-userland/electron-builder/issues/1355\n return raw\n }\n }\n\n const defaultArchs: Array<ArchType> = raw.size === 0 ? [platform =