MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / nexusPack

Function nexusPack

gulpfile.js:290–336  ·  view source on GitHub ↗
(done)

Source from the content-addressed store, hash-verified

288/* ------ Pack ------ */
289
290function nexusPack(done) {
291 const files = ['./build'];
292 // Forcefully include ia32 library since nexus builds ia32
293 if (process.platform === 'win32') {
294 files.push({
295 from: '../../node_modules/@fparchive/flashpoint-archive-win32-ia32-msvc',
296 to: './node_modules/@fparchive/flashpoint-archive-win32-ia32-msvc',
297 filter: ['**/*']
298 });
299 }
300 builder
301 .build({
302 targets: builder.Platform.WINDOWS.createTarget(),
303 config: Object.assign(
304 {
305 appId: 'com.bluemaxima.flashpoint-launcher',
306 productName: 'Flashpoint',
307 directories: {
308 buildResources: './static/',
309 output: './dist/',
310 },
311 files: files,
312 extraFiles: copyFiles, // Files to copy to the build folder
313 extraResources: extraResources, // Copy System Extensions
314 compression: 'maximum', // Only used if a compressed target (like 7z, nsis, dmg etc.)
315 asar: true,
316 artifactName: '${productName}.${ext}',
317 win: {
318 target: [
319 {
320 target: 'zip',
321 arch: 'ia32',
322 }
323 ],
324 icon: './icons/icon.ico',
325 }
326 }
327 ),
328 })
329 .then(() => {
330 console.log('Pack - Done!');
331 })
332 .catch((error) => {
333 console.log('Pack - Error!', error);
334 })
335 .finally(done);
336}
337
338function pack(done) {
339 const publish = config.publish ? publishInfo : []; // Uses Git repo for unpublished builds

Callers

nothing calls this directly

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected