an-anime-game-launcher/scripts/bundle-appimage.cjs
Observer KRypt0n_ 195220d7e0
2.2.0 (pre-release)
* This version will be released after
  all the locales will be updated
- added `HDiffPatch` class to work with HDiffPatch (https://github.com/sisong/HDiffPatch)
- added 2 new launcher states
  + game-files-changes-applying-required
  + game-outdated-files-deletion-required
- added `.hdiff` files changes applying
- updated dependencies

From previous commits:
- fixed an issue with log files' name generation
  It seems that on some specific file systems(?) `stat -c '%W' <file>`
  returns `0` as a file creation timestamp
- updated Italian
2022-02-19 17:06:08 +02:00

46 lines
1.2 KiB
JavaScript

const path = require('path');
// Require bundler
const { Bundler } = require('neutralino-appimage-bundler');
// Create an object with some params
const bundler = new Bundler({
// .desktop file properties
desktop: {
// Name field
name: 'An Anime Game Launcher',
// Path to the icon
icon: path.join(__dirname, '../public/icons/64x64.png'),
// Categories (defult is Utilities)
categories: ['Game']
},
// Neutralino binary info
binary: {
// Name of the binary (cli.binaryName)
name: 'an-anime-game-launcher',
// Dist folder path
dist: path.join(__dirname, '../dist')
},
// Should AppImage contain Neutralino's dependencies or not
// If true, then AppImage will contain binary's shared libraries
includeLibraries: false,
// Some files or folders to copy inside of the the AppImage
copy: {
'public': path.join(__dirname, '../dist/an-anime-game-launcher/public')
},
// Path to the appimage to save
output: path.join(__dirname, '../dist/An Anime Game Launcher.AppImage'),
// Application version
version: '2.2.0'
});
// Bundle project
bundler.bundle();