update the worflow to attemp to fix the windows, arch and app image packages/installer and add new desktop file for linux for a lce content installer and add a gui option to the lce content insaller and new icon for it, but it wont install yet, but coming later

This commit is contained in:
xgui4
2026-05-31 19:09:22 -04:00
parent 34d1bb583e
commit 6c09c61161
17 changed files with 71 additions and 40 deletions

View File

@@ -32,7 +32,7 @@ jobs:
- name: Package Windows
if: matrix.os == 'windows-latest'
shell: pwsh
run: Compress-Archive -Path dist/main.dist/* -DestinationPath LCE-Qt-Launcher-Windows.zip
run: Compress-Archive -Path dist\main.dist\* -DestinationPath LCE-Qt-Launcher-Windows.zip
- name: Package Linux
if: matrix.os == 'ubuntu-latest'
@@ -66,33 +66,25 @@ jobs:
path: packages\windows\Output\*.exe
# --- JOB 3 : Making Arch Linux Packages ---
# FIXME : Do no keep the package file, should keep it and upload it as a Artifect for Release
build_arch_installer:
name: Build Arch Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- name: Validate and Build package
uses: heyhusen/archlinux-package-action@v3.0.0
build_arch_package:
runs-on: ubuntu-latest
container:
image: archlinux
options: --privileged
steps:
- name: Build Arch Linux package
uses: FFY00/build-arch-package@v1
with:
namcap: true
updpkgsums : true
path : "packages/linux/nigthly"
PKGBUILD: packages/linux/nigthly/PKGBUILD
- name: Upload Artifact
uses: actions/upload-artifact@v7.0.1
with:
name: packages-arch
path: |
packages/linux/nigthly/*
packages/linux/nigthly/lce-qt-launcher-git-*.r?.*-?-any.pkg.tar.zst
!packages/linux/nigthly/pkg/
!packages/linux/nigthly/src/
!packages/linux/nigthly/lce-qt-launcher-git/
# --- JOB 4 : Making AppImage ---
build_appimage:
#FIXME /opt/hostedtoolcache/Python/3.12.13/x64/bin/python: No module named pyproject-appimage Error: Process completed with exit code 1.
name: Build GNU/Linx AppImage
runs-on: ubuntu-latest
steps:
@@ -104,15 +96,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install pyproject-appimage
python -m pyproject-appimage
pip install . pyproject-appimage
python pyproject-appimage
- name: Upload Artifact
uses: actions/upload-artifact@v7.0.1
with:
name: binaries-${{ matrix.os }}
path: |
*.zip
*.AppImage
# --- JOB 5 : Publish the Nightly Release ---
release:

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

@@ -21,7 +21,7 @@ Requirements :
[Inno Setup 6.6+](https://jrsoftware.org/isdl.php)
1. Go to the windows packages locations : `cd pacakges/windows`
2. run the script with Inno Setup for your desired channel [`setup-nightly.iss`](packages/windows/setup-nigthly.iss) or [`setup.iss`](packages/windows/setup.iss))
2. run the script with Inno Setup for your desired channel [`nightly.iss`](packages/windows/setup-nigthly.iss) or [`stable.iss`](packages/windows/setup.iss))
#### FreeBSD Port (Experimental)

View File

@@ -34,7 +34,7 @@ Prérequis :
[Inno Setup 6.6+](https://jrsoftware.org/isdl.php)
1. Accédez au répertoire des paquets Windows : `cd packages/windows`
2. Exécutez le script avec Inno Setup pour le canal souhaité : [`setup-nightly.iss`](packages/windows/setup-nightly.iss) ou [`setup.iss`](packages/windows/setup.iss)
2. Exécutez le script avec Inno Setup pour le canal souhaité : [`nightly.iss`](packages/windows/setup-nightly.iss) ou [`stable.iss`](packages/windows/stable.iss)
#### Via système de portage FreeBSD (Expérimental)

View File

@@ -43,6 +43,7 @@ modules:
- install -Dm644 packages/io.github.xgui4.lce_qt_launcher.metainfo.xml /app/share/metainfo/io.github.xgui4.lce_qt_launcher.metainfo.xml
- install -Dm644 packages/lce_inst-mime.xml /app/share/mime/packages/io.github.xgui4.lce_qt_launcher.xml
- install -Dm644 assets/lce_inst.png /app/share/icons/hicolor/128x128/mimetypes/application-x-lce_inst.png
- install -Dm644 assets/lce_content_installer.png /app/share/icons/hicolor/300x300/apps/lce_content_installer.png
sources:
- type: git
url: "https://github.com/xgui4/lce-qt-launcher"

View File

@@ -1,6 +1,6 @@
[Desktop Entry]
Categories=X-Python;X-Minecraft;Game;X-Utils;Qt
Comment=A custom Minecraft LCE Launcher written with Pytho using PySide6 (Qt6 for Python)
Comment=A custom Minecraft LCE Launcher written with Python using PySide6 (Qt6 for Python)
Exec=lce-qt-launcher %f --disable-system-qt-plugins
GenericName=Minecraft LCE Launcher
Icon=io.github.xgui4.lce_qt_launcher

View File

@@ -1,6 +1,6 @@
[Desktop Entry]
Categories=X-Python;X-Minecraft;Game;X-Utils;Qt
Comment=A custom Minecraft LCE Launcher written with Pytho using PySide6 (Qt6 for Python)
Comment=A custom Minecraft LCE Launcher written with Python using PySide6 (Qt6 for Python)
Exec=lce-qt-launcher %f
GenericName=Minecraft LCE Launcher
Icon=io.github.xgui4.lce_qt_launcher

View File

@@ -0,0 +1,11 @@
[Desktop Entry]
Categories=X-Python;X-Minecraft;Game;X-Utils;Qt
Comment=Install Content for Minecraft Legacy Console on Linux/BSD
Exec=lce-mod-manager --gui %f
GenericName=Legacy Console Edition Mod Manager
Icon=lce_content_installer
Keywords=Minecraft;Games;LCE;Python;Qt;Legacy;Console;Edition
Name=LCE Content Installer
Type=Application
Version=1.5
X-KDE-SubstituteUID=false

View File

@@ -57,5 +57,6 @@ package() {
install -Dm644 "readme.md" "code-of-conduct.md" -t "$pkgdir/usr/share/doc/$pkgname/"
install -Dm644 "packages/io.github.xgui4.lce_qt_launcher.metainfo.xml" "$pkgdir/usr/share/metainfo/io.github.xgui4.lce_qt_launcher.metainfo.xml"
install -Dm644 "assets/io.github.xgui4.lce_qt_launcher.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/io.github.xgui4.lce_qt_launcher.png"
install -Dm644 "assets/lce_content_installer.png" "$pkgdir/usr/share/icons/hicolor/300x300/apps/lce_content_installer.png"
install -Dm644 "assets/lce_inst.png" "$pkgdir/usr/share/icons/hicolor/128x128/mimetypes/application-x-lce_inst.png"
}

View File

@@ -1,6 +1,6 @@
# Maintainer: Xgui4
pkgname=lce-qt-launcher
pkgver="0.0.20b0"
pkgver="0.0.30b0"
pkgrel=1
pkgdesc="A custom Minecraft LCE Launcher written wiht PySide6 with GNU/Linux support in mind."
arch=('any')
@@ -29,7 +29,7 @@ optdepends=(
)
provides=("${pkgname%-stable}" "${pkgname%}")
conflicts=("${pkgname%-git}" "${pkgname%-dev}")
source=("${pkgname}::git+${url}.git#tag=v0.0.20a0")
source=("${pkgname}::git+${url}.git#tag=v0.030a0")
sha256sums=('SKIP')
build() {
@@ -50,5 +50,6 @@ package() {
install -Dm644 "readme.md" "code-of-conduct.md" -t "$pkgdir/usr/share/doc/$pkgname/"
install -Dm644 "packages/io.github.xgui4.lce_qt_launcher.metainfo.xml" "$pkgdir/usr/share/metainfo/io.github.xgui4.lce_qt_launcher.metainfo.xml"
install -Dm644 "assets/io.github.xgui4.lce_qt_launcher.png" "$pkgdir/usr/share/icons/hicolor/128x128/apps/io.github.xgui4.lce_qt_launcher.png"
install -Dm644 "assets/lce_content_installer.png" "$pkgdir/usr/share/icons/hicolor/300x300/apps/lce_content_installer.png"
install -Dm644 "assets/lce_inst.png" "$pkgdir/usr/share/icons/hicolor/128x128/mimetypes/application-x-lce_inst.png"
}

View File

@@ -0,0 +1 @@
this version is for the next stable release which is not ready yet

View File

@@ -3,7 +3,7 @@
; Non-commercial use only
#define MyAppName "LCE Qt Launcher (Nightly)"
#define MyAppVersion "nighly"
#define MyAppVersion "nightly"
#define MyAppPublisher "Xgui4"
#define MyAppURL "https://github.com/xgui4/lce-qt-launcher"
#define MyAppExeName "main.exe"
@@ -35,7 +35,7 @@ OutputBaseFilename=LCE-Qt-Launcher-Windows-Nigthly-Setup
SetupIconFile=..\..\assets\setup.ico
SolidCompression=yes
WizardStyle=modern dark polar
ArchiveExtraction=full
; A rchiveExtraction=full
; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run
; on anything but x64 and Windows 11 on Arm.
ArchitecturesAllowed=x64compatible

View File

@@ -26,6 +26,7 @@
<file alias="360Revived.png">assets/images/360Revived.png</file>
<file alias="Revelation.jpg">assets/images/Revelation.jpg</file>
<file alias="portable-lce.png">assets/images/portable-lce.png</file>
<file alias="lce-content-installer">assets/lce_content_installer.png</file>
</qresource>
<qresource prefix="/styles">
<file alias="minecraft.qss">assets/styles/minecraft.qss</file>

View File

@@ -15,7 +15,7 @@
</property>
<property name="windowIcon">
<iconset resource="../res.qrc">
<normaloff>:/assets/jigsaw-ico.png</normaloff>:/assets/jigsaw-ico.png</iconset>
<normaloff>:/assets/lce-content-installer</normaloff>:/assets/lce-content-installer</iconset>
</property>
<layout class="QFormLayout" name="formLayout">
<item row="0" column="0">
@@ -92,7 +92,7 @@
<string>Mod</string>
</property>
</item>
<item>
<item>
<property name="text">
<string>Custom Skin</string>
</property>

View File

@@ -16,18 +16,20 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see https://www.gnu.org/licenses/.
"""
# nuitka-project: --enable-plugin=pyside6
# nuitka-project: --windows-icon-from-ico=assets/app.ico
# nuitka-project: --windows-product-name=LCE-Qt-Launcher
# nuitka-project: --include-qt-plugins=sensible
# nuitka-project-if: {OS} == "Windows":
# nuitka-project: --windows-icon-from-ico=assets/app.ico
# nuitka-project: --windows-product-name=LCE-Qt-Launcher
# nuitka-project: --product-version="0.0.20.5"
# nuitka-project: --file-version="0.0.20.5"
# nuitka-project: --file-description="LCE Qt Launcher Alpha"
# nuitka-project: --copyright="Copyleft Xgui4 2026 (GPLv3)"
# nuitka-project: --include-data-dir=assets=assets
# nuitka-project: --include-data-dir=data=data
# nuitka-project: --include-qt-plugins=sensible
# nuitka-project: --product-version="0.0.20.5"
# nuitka-project: --file-version="0.0.20.5"
# nuitka-project: --file-description="LCE Qt Launcher Alpha"
# nuitka-projet: --include-distribution-metadata=lce-qt-launcher
# nuitka-project: --copyright="Copyleft Xgui4 2026 (GPLv3)"
from lce_qt_launcher import instance_extension_str

View File

@@ -108,6 +108,28 @@ def install_content(instance_path: str, contentType: ContentType, archive_file:
def main():
if len(sys.argv) > 1:
if sys.argv[1] == "--gui":
from PySide6.QtWidgets import QApplication
from PySide6.QtGui import QFontDatabase
from lce_qt_launcher.views.content_installer_dialog import ContentInstallerView
app = QApplication()
app.setStyle("Fusion")
ContentInstallerView()
font_id = QFontDatabase.addApplicationFont(":/fonts/monocraft.ttc")
if font_id == -1:
print("Error: Font could not be loaded.")
else:
family = QFontDatabase.applicationFontFamilies(font_id)[0]
app.setFont(family)
sys.exit(app.exec())
parser = argparse.ArgumentParser(
prog="LCE Mods Manager",
description="Manage DLC, World and Mods for Minecraft LCE",