an-anime-game-launcher/scripts/bundle-appimage.cjs

47 lines
1.2 KiB
JavaScript
Raw Normal View History

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
2.1.0 - changed application id - implemented !28 - changed a bit config file structure From previous commits: - ping command check before telemetry check (!23) - updated empathize version; due to it was removed `Launcher.isPackageAvailable()` method which now included in empathize as `Package.exists()` - `Game.isTelemetryDisabled()` now rejects an Error object when `iputils` package (`ping` command) is not installed - due to the change above was slightly rewritten `Launch.ts` script - added automatic default language selection - added `Locales.system()` method to get launcher-supported locale based on the `$LANG` env variable - use polkit/pkexec instead of removing sudo section (!26) - blured everything that should be blured in the launcher pics - added blank analytics window - removed `components.sass` file; its content was moved to `settings.sass` - improved `Button` component - added `constants.uri.discord` and `constants.placeholders.uppercase.company_alterego` fields - added proper windows centering - added Hungarian - added `wine-ge 7.1-1` and `proton-ge 7.1-(1/2)` to the runners list - `wine-ge 7.1-1` now is the default runner to install during the game's installation - small conspiracy changes - fixed actions execution issues in the launcher's core libraries - added virtual desktop option (!28) - added ToS violation warning window - added additional IPC pull purging during the start of the launcher From 2.1.0-beta1: - moved launcher on empathize - added some links to the end of the settings menu - updated notahuman's shaders to v4 - added localizations for notifications - fixed possible errors in `Locales.bind()` method - added `Locales.translate()` method to translate something - added DXVK 1.9.4 and made it default; DXVK 1.8 and 1.8.1 now aren't recommended - added Indonesian - added Wine synchronization option in settings that can accept None, ESync or FSync - added `xdelta3` package existing checking before patch applying; also added an error notification when patch repos are not available - `cache.json` file was renamed to `.cache.json` - `Patch.fetchTimeout` was increased up to 5 seconds from 3 seconds - fixed *possible* issue with `Locales.default()` method: before, if you've been passing there a language to set as default, it wasn't returning properly - added notification when all the patch repos are not available
2022-01-30 23:48:34 +03:00
version: '2.1.0'
2022-01-02 18:17:06 +03:00
});
// Bundle project
bundler.bundle();