add bsd helper and start of bsd ports

This commit is contained in:
xgui4
2026-05-11 00:06:25 -04:00
parent a214bb11d8
commit fd17d19883
11 changed files with 62 additions and 110 deletions

View File

@@ -54,7 +54,7 @@ jobs:
steps:
- uses: actions/checkout@v6.0.2
- name: Compile .ISS
uses: Minionguyjpro/Inno-Setup-Action@v1.2.8
uses: Minionguyjpro/Inno-Setup-Action@v1.2.7 # Test ! check if the bug was a regresion
with:
path: packages\windows\windows-setup-nigthly.iss
options: '/O+ /F"LCE_Qt_Launcher_Windows_Nigthly_Setup"'

2
.gitignore vendored
View File

@@ -1,7 +1,6 @@
# This file is used to ignore files which are generated
# ----------------------------------------------------------------------------
!core/
*.*#
*.a
*.app
@@ -31,7 +30,6 @@
.qmake.stash
.qmlls.ini
.axivion
Makefile*
Thumbs.db
core
moc_*.cpp

9
bsd-helper.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env sh
if $1 = "install"; then
uv venv --system-site-packages
source .venv/bin/activate.fish
uv sync --system-certs
fi

31
freebsd-ports/Makefile Normal file
View File

@@ -0,0 +1,31 @@
PORTNAME= lce-qt-launcher
DISTVERSION= 26.5.11b0
CATEGORIES= games python
MAINTAINER= xgui4-dev@example.com
COMMENT= Custom Free/Libre Minecraft Legacy Console Launcher
WWW= https://github.com/xgui4/LCE-Qt-Launcher/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/license.md
USES= python qt:6
USE_GITHUB= yes
GH_ACCOUNT= xgui4
GH_PROJECT= LCE-Qt-Launcher
GH_TAGNAME= nightly
BUILD_DEPENDS= bash:shells/bash \
${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyside6>0:devel/pyside6@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}hatch>0:devel/py-hatch@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}rich>0:devel/py-rich${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}vdf>0:devel/py-vdf${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:devel/py-requests${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}platformdirs>0:devel/py-platformdirs{PY_FLAVOR}
USE_PYTHON= autoplist distutils
USE_QT= tools:build
.include <bsd.port.mk>

3
freebsd-ports/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1778472337
SHA256 (xgui4-LCE-Qt-Launcher-26.5.11b0-nightly_GH0.tar.gz) = d94ac9c5a0488d4401e3f6801208d3ea98a2475f423e178a7d1588366d294682
SIZE (xgui4-LCE-Qt-Launcher-26.5.11b0-nightly_GH0.tar.gz) = 1068055

4
freebsd-ports/pkg-descr Normal file
View File

@@ -0,0 +1,4 @@
This is a custom Minecraft LCE Launcher written in Python and Qt with Freedom and with GNU/Linux support in mind.
It have a CLI, support multiples Minecraft Instances, have marketplade/workshop by LCE Emerald Team to add community
content in the game. In aps News/Git History for most default instances. Since it ise Qt, the theme will fit your system theme
(espcially if you use KDE Plasma-and could easily customised further. Since it is written in pyton, it could be expanded.

9
freebsd-ports/pkg-plist Normal file
View File

@@ -0,0 +1,9 @@
data/lce_qt_launcher.ini
usr/local/share/applications/io.github.xgui4.lce_qt_launcher.desktop
usr/local/share/mime/packages/io.github.xgui4.lce_qt_launcher.gtk.metainfo.xml
usr/local/share/licenses/lce-qt-Launcher.md
usr/local/share/doc/lce-qt-launcher/code-of-conduct.md
usr/local/share/doc/lce-qt-launcher/readme.md
usr/local/share/metainfo/io.github.xgui4.lce_qt_launcher.metainfo.xml
usr/local/share/icons/hicolor/128x128/apps/io.github.xgui4.lce_qt_launcher.png
usr/local/share/icons/hicolor/128x128/mimetypes/application-x-lce_inst.png

View File

@@ -53,10 +53,10 @@ package() {
cp -r data assets "$pkgdir"
install -Dm644 "data/lce_qt_launcher.ini" "$pkgdir/etc/lce_qt_launcher.ini"
install -Dm644 "packages/io.github.xgui4.lce_qt_launcher.desktop" "$pkgdir/usr/share/applications/io.github.xgui4.lce_qt_launcher.desktop"
install -Dm644 "packages/lce_inst-mime.xml" "$pkgdir/usr/share/mime/packages/io.github.xgui4.lce_qt_launcher.gtk.metainfo.xml"
install -Dm644 "packages/lce_inst-mime.xml" "$pkgdir/usr/share/mime/packages/io.github.xgui4.lce_qt_launcher.metainfo.xml"
install -Dm644 "license.md" -t "$pkgdir/usr/share/licenses/$pkgname/"
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.gtk.metainfo.xml"
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_inst.png" "$pkgdir/usr/share/icons/hicolor/128x128/mimetypes/application-x-lce_inst.png"
}

View File

@@ -46,10 +46,10 @@ package() {
cp -r data assets "$pkgdir"
install -Dm644 "data/lce_qt_launcher.ini" "$pkgdir/etc/lce_qt_launcher.ini"
install -Dm644 "packages/io.github.xgui4.lce_qt_launcher.desktop" "$pkgdir/usr/share/applications/io.github.xgui4.lce_qt_launcher.desktop"
install -Dm644 "packages/lce_inst-mime.xml" "$pkgdir/usr/share/mime/packages/io.github.xgui4.lce_qt_launcher.gtk.metainfo.xml"
install -Dm644 "packages/lce_inst-mime.xml" "$pkgdir/usr/share/mime/packages/io.github.xgui4.lce_qt_launcher.metainfo.xml"
install -Dm644 "license.md" -t "$pkgdir/usr/share/licenses/$pkgname/"
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.gtk.metainfo.xml"
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_inst.png" "$pkgdir/usr/share/icons/hicolor/128x128/mimetypes/application-x-lce_inst.png"
}

View File

@@ -18,7 +18,7 @@ dependencies = [
"PySide6>=6.11.0; sys_platform == 'win32' or sys_platform == 'linux' or sys_platform == 'darwin'",
"requests>=2.33.1",
"platformdirs",
"rich>=14.3.3",
"rich>=15.0.0",
"hatch<=1.16.5",
"Nuitka<=4.0.7",
"patchelf<=0.17.2.4; sys_platform == 'linux'",

View File

@@ -1,102 +0,0 @@
[build-system]
requires = [
"hatchling",
"PySide6; sys_platform == 'win32' or sys_platform == 'linux' or sys_platform == 'darwin'"
]
build-backend = "hatchling.build"
[project]
name = "LCE-Qt-Launcher"
version = "26.5.10a0"
description = "This is a custom Free/Libre Minecraft LCE Launcher written in Python and Qt. (Nightly Build)"
requires-python = ">3.10, <3.13"
license = "GPL-3.0-or-later"
readme = "readme.md"
license-files = [ "license.md" ]
dependencies = [
"PySide6>=6.11.0; sys_platform == 'win32' or sys_platform == 'linux' or sys_platform == 'darwin'",
"requests>=2.33.1",
"platformdirs",
"rich>=14.3.3",
"hatch<=1.16.5",
"Nuitka<=4.0.7",
"patchelf<=0.17.2.4; sys_platform == 'linux'",
"vdf<=3.4"
]
[project.scripts]
lce-qt-launcher = "lce_qt_launcher.main:main"
lce-mod-manager = "lce_qt_launcher.managers.mod_manager:main"
lce-steam-manager = "lce_qt_launcher.managers.steam_manager:main"
[project.urls]
Repository = "https://github.com/xgui4/LCE-QT-Launcher"
LicenseURL = "https://www.gnu.org/licenses/gpl-3.0"
[tool.hatch.build.targets.wheel.hooks.custom]
path = "hatch_build.py"
[tool.hatch.envs.default.scripts]
packages = "python packages.py"
run-app = "python run.py"
[tool.pyright]
reportImportCycles="hint"
[tool.hatch.build]
artifacts = [
"src/lce_qt_launcher/ui_*.py",
"src/lce_qt_launcher/res_rc.py",
]
[tool.hatch.build.targets.wheel]
artifacts = [
"src/lce_qt_launcher/ui_*.py",
"src/lce_qt_launcher/res_rc.py",
]
[tool.pyside6-project]
files = [
"src/lce_qt_launcher/__init__.py",
"src/lce_qt_launcher/app.py",
"src/lce_qt_launcher/app_context.py",
"src/lce_qt_launcher/downloader.py",
"src/lce_qt_launcher/features.py",
"src/lce_qt_launcher/views/__init__.py",
"src/lce_qt_launcher/views/cmd_args.py",
"src/lce_qt_launcher/views/launcher.py",
"src/lce_qt_launcher/views/setting_dialog.py",
"src/lce_qt_launcher/views/browser_dialog.py",
"src/lce_qt_launcher/views/term_service.py",
"src/lce_qt_launcher/views/cli.py",
"src/lce_qt_launcher/views/launcher.py",
"src/lce_qt_launcher/views/launcher.py",
"src/lce_qt_launcher/views/app_data.py",
"src/lce_qt_launcher/managers/__init__.py",
"src/lce_qt_launcher/managers/instance.py",
"src/lce_qt_launcher/managers/system_manager.py",
"src/lce_qt_launcher/managers/steam_manager.py",
"src/lce_qt_launcher/managers/proton_manager.py",
"src/lce_qt_launcher/managers/mod_manager.py",
"src/lce_qt_launcher/managers/import_manager.py",
"src/lce_qt_launcher/managers/skin_manager.py",
"src/lce_qt_launcher/models/__init__.py",
"src/lce_qt_launcher/models/image_class.py",
"src/lce_qt_launcher/models/preferences.py",
"src/lce_qt_launcher/models/theme.py",
"src/lce_qt_launcher/utils/__init__.py",
"src/lce_qt_launcher/utils/json_trans.py",
"src/lce_qt_launcher/utils/holyday.py",
"src/system_info.ui",
"src/instance.ui",
"src/form.ui",
"src/main.py",
"license.md",
"lisezmoi.md",
"readme.md",
"res.qrc",
"CODE-DE-CONDUITE.md",
"code-of-conduct.md",
"assets/app.ico"
]