test installer (fix taksbar icon)
This commit is contained in:
parent
5c91c341a0
commit
c5004dd52b
5 changed files with 52 additions and 10 deletions
|
|
@ -33,7 +33,7 @@ jobs:
|
|||
run: npx cap copy electron
|
||||
|
||||
- name: Build
|
||||
run: mkdir -p build && cd build && npx electron-packager ../electron miarven --platform=linux --arch=x64 --icon=../icons/icon.png --overwrite --asar && cp ../icons/icon.png ./miarven-linux-x64/icon.png && cp ../assets/Miarven.desktop ./miarven-linux-x64/Miarven.desktop
|
||||
run: mkdir -p build && cd build && npx electron-packager ../electron miarven --platform=linux --arch=x64 --icon=../icons/icon.png --overwrite --asar && cp ../icons/icon.png ./miarven-linux-x64/icon.png && cp ../assets/olcxja.miarven.desktop ./miarven-linux-x64/olcxja.miarven.desktop && cp ../assets/install.sh ./miarven-linux-x64/install.sh && chmod +x ./miarven-linux-x64/install.sh
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Name=Miarven
|
||||
Exec=bash -c 'DIR="$(dirname "%k")"; mkdir -p ~/.local/share/icons; cp "$DIR/icon.png" ~/.local/share/icons/olcxjamiarven.png; cd "$DIR" && ./miarven'
|
||||
Icon=olcxjamiarven
|
||||
Type=Application
|
||||
Categories=Internet
|
||||
StartupNotify=true
|
||||
StartupWMClass=olcxja.miarven
|
||||
40
assets/install.sh
Normal file
40
assets/install.sh
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "WARNING: Make sure you don't run this script in a folder that contains anything more than Miarven"
|
||||
echo "otherwise it may result in data loss"
|
||||
|
||||
read -r -p "Press Enter to continue (or Ctrl+C, to cancel)..."
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
BIN_DIR="$HOME/.local/bin/olcxja.miarven"
|
||||
APP_DIR="$HOME/.local/share/applications"
|
||||
|
||||
echo "1. Copying files..."
|
||||
mkdir -p "$BIN_DIR"
|
||||
mkdir -p "$APP_DIR"
|
||||
|
||||
cp -r "$SCRIPT_DIR/"* "$BIN_DIR/"
|
||||
|
||||
echo "2. Creating shortcut..."
|
||||
|
||||
mv "$BIN_DIR/olcxja.miarven.desktop" "$APP_DIR/olcxja.miarven.desktop"
|
||||
|
||||
echo "3. Adding executable permissions..."
|
||||
chmod +x "$APP_DIR/olcxja.miarven.desktop"
|
||||
chmod +x "$BIN_DIR/miarven"
|
||||
|
||||
echo "4. Cleaning installation..."
|
||||
|
||||
rm -f "$BIN_DIR/olcxja.miarven.desktop"
|
||||
rm -f "$BIN_DIR/install.sh"
|
||||
|
||||
echo "5. Installation completed. Cleaning up and launching..."
|
||||
|
||||
rm -rf "$SCRIPT_DIR"/*
|
||||
|
||||
"$BIN_DIR/miarven" &
|
||||
|
||||
exit 0
|
||||
8
assets/olcxja.miarven.desktop
Normal file
8
assets/olcxja.miarven.desktop
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Name=Miarven
|
||||
Exec=~/.local/bin/olcxja.miarven/miarven
|
||||
Icon=olcxja.miarven
|
||||
Type=Application
|
||||
Categories=Internet
|
||||
StartupNotify=true
|
||||
StartupWMClass=olcxja.miarven
|
||||
|
|
@ -2,4 +2,6 @@ mkdir build
|
|||
cd build
|
||||
npx electron-packager ../electron miarven --platform=linux --arch=x64 --icon=../electron/assets/icon.png --overwrite --asar
|
||||
cp ../icons/icon.png ./miarven-linux-x64/icon.png
|
||||
cp ../assets/Miarven.desktop ./miarven-linux-x64/Miarven.desktop
|
||||
cp ../assets/olcxja.miarven.desktop ./miarven-linux-x64/olcxja.miarven.desktop
|
||||
cp ../assets/install.sh ./miarven-linux-x64/install.sh
|
||||
chmod +x ./miarven-linux-x64/install.sh
|
||||
Loading…
Add table
Add a link
Reference in a new issue