mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-01 22:47:19 +03:00
Updated project bundling
This commit is contained in:
parent
beb2f516a8
commit
21ec639405
4 changed files with 12 additions and 39 deletions
|
@ -7,9 +7,7 @@
|
||||||
"neu": "neu",
|
"neu": "neu",
|
||||||
"dev": "vite build && neu run --disable-auto-reload",
|
"dev": "vite build && neu run --disable-auto-reload",
|
||||||
"build": "vite build && rm -rf dist/an-anime-game-launcher/public && mkdir dist/an-anime-game-launcher/public && cp public/runners.json dist/an-anime-game-launcher/public && cp public/dxvks.json dist/an-anime-game-launcher/public && cp -r public/locales dist/an-anime-game-launcher/public/locales && cp -r public/shaders dist/an-anime-game-launcher/public/shaders && neu build --release",
|
"build": "vite build && rm -rf dist/an-anime-game-launcher/public && mkdir dist/an-anime-game-launcher/public && cp public/runners.json dist/an-anime-game-launcher/public && cp public/dxvks.json dist/an-anime-game-launcher/public && cp -r public/locales dist/an-anime-game-launcher/public/locales && cp -r public/shaders dist/an-anime-game-launcher/public/shaders && neu build --release",
|
||||||
"bundle": "yarn bundle:pure && yarn bundle:with-libs",
|
"bundle": "node scripts/bundle-appimage.cjs",
|
||||||
"bundle:pure": "node scripts/bundle-appimage-pure.cjs",
|
|
||||||
"bundle:with-libs": "node scripts/bundle-appimage-with-libs.cjs",
|
|
||||||
"check": "svelte-check --tsconfig ./tsconfig.json"
|
"check": "svelte-check --tsconfig ./tsconfig.json"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -22,7 +20,7 @@
|
||||||
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.33",
|
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.33",
|
||||||
"@tsconfig/svelte": "^3.0.0",
|
"@tsconfig/svelte": "^3.0.0",
|
||||||
"@types/js-md5": "^0.4.3",
|
"@types/js-md5": "^0.4.3",
|
||||||
"neutralino-appimage-bundler": "^1.2.1",
|
"neutralino-appimage-bundler": "^1.3.1",
|
||||||
"sass": "^1.45.2",
|
"sass": "^1.45.2",
|
||||||
"svelte": "^3.44.3",
|
"svelte": "^3.44.3",
|
||||||
"svelte-check": "^2.2.11",
|
"svelte-check": "^2.2.11",
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
const { params } = require('./bundle-appimage.cjs');
|
|
||||||
|
|
||||||
// Require bundler
|
|
||||||
const { Bundler } = require('neutralino-appimage-bundler');
|
|
||||||
|
|
||||||
// Create an object with some params
|
|
||||||
const bundler = new Bundler({
|
|
||||||
...params,
|
|
||||||
|
|
||||||
includeLibraries: false
|
|
||||||
});
|
|
||||||
|
|
||||||
// Bundle project
|
|
||||||
bundler.bundle();
|
|
|
@ -1,18 +0,0 @@
|
||||||
const path = require('path');
|
|
||||||
|
|
||||||
const { params } = require('./bundle-appimage.cjs');
|
|
||||||
|
|
||||||
// Require bundler
|
|
||||||
const { Bundler } = require('neutralino-appimage-bundler');
|
|
||||||
|
|
||||||
// Create an object with some params
|
|
||||||
const bundler = new Bundler({
|
|
||||||
...params,
|
|
||||||
|
|
||||||
includeLibraries: true,
|
|
||||||
|
|
||||||
output: path.join(__dirname, '../dist/An Anime Game Launcher Prebundled.AppImage')
|
|
||||||
});
|
|
||||||
|
|
||||||
// Bundle project
|
|
||||||
bundler.bundle();
|
|
|
@ -1,6 +1,10 @@
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
exports.params = {
|
// Require bundler
|
||||||
|
const { Bundler } = require('neutralino-appimage-bundler');
|
||||||
|
|
||||||
|
// Create an object with some params
|
||||||
|
const bundler = new Bundler({
|
||||||
// .desktop file properties
|
// .desktop file properties
|
||||||
desktop: {
|
desktop: {
|
||||||
// Name field
|
// Name field
|
||||||
|
@ -23,7 +27,7 @@ exports.params = {
|
||||||
},
|
},
|
||||||
|
|
||||||
// Should AppImage contain Neutralino's dependencies or not
|
// Should AppImage contain Neutralino's dependencies or not
|
||||||
// If true, then AppImage will contain webkit2gtk
|
// If true, then AppImage will contain binary's shared libraries
|
||||||
includeLibraries: false,
|
includeLibraries: false,
|
||||||
|
|
||||||
// Some files or folders to copy inside of the the AppImage
|
// Some files or folders to copy inside of the the AppImage
|
||||||
|
@ -36,4 +40,7 @@ exports.params = {
|
||||||
|
|
||||||
// Application version
|
// Application version
|
||||||
version: '2.0.0-beta-2'
|
version: '2.0.0-beta-2'
|
||||||
};
|
});
|
||||||
|
|
||||||
|
// Bundle project
|
||||||
|
bundler.bundle();
|
||||||
|
|
Loading…
Reference in a new issue