Skip to content

Commit 41c2562

Browse files
committed
chore: sync local manual changes
1 parent 5a41968 commit 41c2562

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

bin/start-am-gui.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/sh
2-
export TERM=xterm-256color
3-
export COLORTERM=truecolor
2+
43
APPDIR="$(cd "$(dirname "$0")/.." && pwd)"
54
"$APPDIR/node_modules/electron/dist/electron" "$APPDIR/main.js"

main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Fixe les variables d'environnement terminal si absentes (utile pour AppImage)
2+
if (!process.env.TERM) process.env.TERM = 'xterm-256color';
3+
if (!process.env.COLORTERM) process.env.COLORTERM = 'truecolor';
4+
15
const { app, BrowserWindow, ipcMain, Menu, protocol, shell } = require('electron');
26
const path = require('path');
37
const fs = require('fs');

scripts/get-dependencies.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ git clone https://github.com/Shikakiben/AM-GUI.git
3030
cd AM-GUI
3131
npm install
3232
npx electron-rebuild
33-
rm -rf scripts AM-GUI.code-workspace AM-GUI2.png eslint.config.js LICENSE package-lock.json README.md
33+
npm run dist
3434
cd ..
35-
mkdir -p ./AppDir
36-
cp -rv AM-GUI/* ./AppDir
37-
cp -v AM-GUI/AM-GUI.png ./AppDir/.DirIcon
35+
mkdir -p ./AppDir/bin
36+
cp -rv AM-GUI/dist/linux-unpacked* ./AppDir/bin
37+
cp -v AM-GUI/AM-GUI.png ./AppDir/.DirIcon
38+
cp -v AM-GUI/AM-GUI.desktop ./AppDir
3839

3940

scripts/make-appimage.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}
1111

1212
# Deploy dependencies
1313
quick-sharun \
14-
./AppDir/bin/start-am-gui.sh \
15-
./AppDir/node_modules/node-pty/build/Release/pty.node
16-
14+
./AppDir/bin/*
15+
1716
# Additional changes can be done in between here
1817

1918
# Turn AppDir into AppImage

0 commit comments

Comments
 (0)