mirror of
https://github.com/xgui4/LCE-Qt-Launcher.git
synced 2026-07-18 01:20:45 +00:00
better windows build system hook , and added appimage workflow to nightly
This commit is contained in:
37
.github/workflows/nightly.yml
vendored
37
.github/workflows/nightly.yml
vendored
@@ -90,8 +90,34 @@ jobs:
|
|||||||
# !packages/linux/nigthly/pkg/
|
# !packages/linux/nigthly/pkg/
|
||||||
# !packages/linux/nigthly/src/
|
# !packages/linux/nigthly/src/
|
||||||
# !packages/linux/nigthly/lce-qt-launcher-git/
|
# !packages/linux/nigthly/lce-qt-launcher-git/
|
||||||
|
|
||||||
|
# --- JOB 4 : Making AppImage ---
|
||||||
|
build_appimage:
|
||||||
|
name: Build GNU/Linx AppImage
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6.0.2
|
||||||
|
- uses: actions/setup-python@v6.2.0
|
||||||
|
with:
|
||||||
|
python-version: "3.12"
|
||||||
|
cache: 'pip'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install pyproject-appimage
|
||||||
|
pip -m pyproject-appimage
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v7.0.1
|
||||||
|
with:
|
||||||
|
name: binaries-${{ matrix.os }}
|
||||||
|
path: |
|
||||||
|
*.
|
||||||
|
|
||||||
# --- JOB 4 : Publish the Nightly Release ---
|
# --- JOB 5 : Publish the Nightly Release ---
|
||||||
release:
|
release:
|
||||||
name: Create Nightly Release
|
name: Create Nightly Release
|
||||||
needs: [build]
|
needs: [build]
|
||||||
@@ -122,7 +148,8 @@ jobs:
|
|||||||
The nigthly build are experimental nuitka compilation from the dev branch \n
|
The nigthly build are experimental nuitka compilation from the dev branch \n
|
||||||
Now includes installers (NOTE : currently, Automatic installer workflow is broken)."
|
Now includes installers (NOTE : currently, Automatic installer workflow is broken)."
|
||||||
files: |
|
files: |
|
||||||
./artifacts/****.exe
|
./artifacts/*.exe
|
||||||
./artifacts/****.zip
|
./artifacts/*.zip
|
||||||
./artifacts/****.pkg.tar.zst
|
./artifacts/*.AppImage
|
||||||
./artifacts/****.tar.gz
|
./artifacts/*.pkg.tar.zst
|
||||||
|
./artifacts/*.tar.gz
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ class CustomBuildHook(BuildHookInterface): # pyright: ignore[reportMissingTypeA
|
|||||||
if os.name == "posix":
|
if os.name == "posix":
|
||||||
_ = subprocess.run("./scripts/clean.sh", check=True)
|
_ = subprocess.run("./scripts/clean.sh", check=True)
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
_ = subprocess.run("scripts\\clean.cmd", check=True, shell=True)
|
_ = subprocess.run(["powershell", "-ExecutionPolicy", "Bypass", "-File", "\"scripts\\clean.ps1\""], check=True, shell=True)
|
||||||
return super().clean(versions)
|
return super().clean(versions)
|
||||||
|
|
||||||
def initialize(self, version, build_data) -> None: # pyright: ignore[reportMissingParameterType]
|
def initialize(self, version, build_data) -> None: # pyright: ignore[reportMissingParameterType]
|
||||||
if os.name == "posix":
|
if os.name == "posix":
|
||||||
_ = subprocess.run("./scripts/build.sh", check=True)
|
_ = subprocess.run("./scripts/build.sh", check=True)
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
_ = subprocess.run("scripts\\build.cmd", check=True, shell=True)
|
_ = subprocess.run(["powershell", "ExecutionPolicy", "Bypass", "-File", "\"scripts\\build.ps1\""], check=True, shell=True)
|
||||||
return super().initialize(version, build_data)
|
return super().initialize(version, build_data)
|
||||||
|
|||||||
@@ -4,4 +4,4 @@ import subprocess
|
|||||||
if os.name == "posix":
|
if os.name == "posix":
|
||||||
_ = subprocess.run("./scripts/packages.sh", check=True)
|
_ = subprocess.run("./scripts/packages.sh", check=True)
|
||||||
if os.name == "nt":
|
if os.name == "nt":
|
||||||
_ = subprocess.run("scripts\\packages.cmd", check=True, shell=True)
|
_ = subprocess.run(["powershell", "-ExecutionPolicy", "Bypass", "-File", "\"scripts\\packages.ps1\""], check=True, shell=True)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Maintainer: Xgui4
|
# Maintainer: Xgui4
|
||||||
pkgname=lce-qt-launcher-git
|
pkgname=lce-qt-launcher-git
|
||||||
pkgver=nightly.r0.ga42d4f2
|
pkgver=nightly.r1.g7dcbd09
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="A custom Minecraft LCE Launcher written with PySide6 with GNU/Linux support in mind. (Nightly/Git Build)"
|
pkgdesc="A custom Minecraft LCE Launcher written with PySide6 with GNU/Linux support in mind. (Nightly/Git Build)"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
echo "Starting Compilaton of Qt Ressource"
|
|
||||||
pyside6-rcc "res.qrc" -o "src\lce_qt_launcher\res_rc.py" || exit /b 1
|
|
||||||
echo "done"
|
|
||||||
|
|
||||||
setlocal enabledelayedexpansion
|
|
||||||
|
|
||||||
echo "Compilation of Qt ui files"
|
|
||||||
|
|
||||||
set ui[0]="form"
|
|
||||||
set ui[1]="system_info"
|
|
||||||
set ui[2]="instance"
|
|
||||||
set ui[3]="settingDialog"
|
|
||||||
set ui[4]="about"
|
|
||||||
set ui[5]="contentInstaller"
|
|
||||||
|
|
||||||
for /L %%i in (0,1,5) do (
|
|
||||||
set "filename=!ui[%%i]!"
|
|
||||||
|
|
||||||
echo "Compiling !filename!.ui Qt UI file"
|
|
||||||
pyside6-uic "src/!filename!.ui" -o "src\lce_qt_launcher\ui_!filename!.py" || (
|
|
||||||
echo Error compiling !filename!.ui
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
echo "done"
|
|
||||||
)
|
|
||||||
|
|
||||||
echo "Compilation of all Qt ui files finished"
|
|
||||||
18
scripts/build.ps1
Normal file
18
scripts/build.ps1
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
|
Write-Output "Starting Compilaton of Qt Ressource"
|
||||||
|
pyside6-rcc "res.qrc" -o "src\lce_qt_launcher\res_rc.py" || exit /b 1
|
||||||
|
Write-Output "done"
|
||||||
|
|
||||||
|
Write-Output "Compilation of Qt ui files"
|
||||||
|
|
||||||
|
$QT_UI_ARRAY="system_info","form","instance","settingDialog","about", "contentInstaller"
|
||||||
|
|
||||||
|
foreach ($QT_UI in $QT_UI_ARRAY)
|
||||||
|
{
|
||||||
|
Write-Output "Compiling $QT_UI.ui Qt UI file"
|
||||||
|
pyside6-uic "src/$T_UI..ui" -o "src\lce_qt_launcher\ui_$Qt_UI.py"
|
||||||
|
Write-Output "done"
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Output "Compilation of all Qt ui files finished"
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
@echo off
|
|
||||||
powershell.exe -ExecutionPolicy Bypass -File "clean.ps1"
|
|
||||||
@@ -17,11 +17,11 @@ Write-Output "done"
|
|||||||
|
|
||||||
foreach ($QT_UI in $QT_UI_ARRAY)
|
foreach ($QT_UI in $QT_UI_ARRAY)
|
||||||
{
|
{
|
||||||
Write-Output "Removing the compilated ui_$QT_UI.py Qt UI file"
|
Write-Output "Compiling $QT_UI.ui Qt UI file"
|
||||||
Remove-Item -Path "src\lce_qt_launcher\ui_$QT_UI.py"
|
Remove-Item -Path "src\lce_qt_launcher\ui_$QT_UI.py"
|
||||||
Write-Output "done"
|
Write-Output "done"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Output "Removing every pycaches filed"
|
Write-Output "Removing every pycaches filed"
|
||||||
Get-ChildItem -Path . -Recurse -Include '__pycache__', '*.pyc' | Remove-Item -Recurse -Force
|
Get-ChildItem -Path . -Recurse -Include '__pycache__', '*.pyc' | Remove-Item -Recurse -Force
|
||||||
Write-Output "done"
|
Write-Output "done"
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
@echo off
|
|
||||||
cd /d "%~dp0"
|
|
||||||
|
|
||||||
powershell.exe -ExecutionPolicy Bypass -File "..\packages.ps1"
|
|
||||||
Reference in New Issue
Block a user