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