mirror of
https://github.com/xgui4/LCE-Qt-Launcher.git
synced 2026-07-16 02:40:38 +00:00
update the wip flatpak repo packages, move the appstream on the root of the project, and remove it from packages and now the package and ntuitka packages no longer copy the whole assets and data folder since it is on qt ressoures and betters scripts and fix a error in echo in clean sript for windows and update deps
This commit is contained in:
@@ -10,24 +10,31 @@ UIC="pyside6-ui"
|
||||
|
||||
fix_import() {
|
||||
if [[ $(uname -o) == "GNU/Linux" ]]; then
|
||||
echo "fixing $1 file."
|
||||
sed -i 's/^import res_rc/from . import res_rc/g' "$1"
|
||||
else
|
||||
echo "fixing $1 file."
|
||||
sed -i.bak 's/^import res_rc/from . import res_rc/g' "$1"
|
||||
rm "$1.bak"
|
||||
echo "removing $1.bak file."
|
||||
fi
|
||||
}
|
||||
|
||||
find_qt_tool() {
|
||||
if command -v pyside6-rcc &> /dev/null; then
|
||||
echo "pyside6-rcc detected. using pyside6 tools."
|
||||
RCC="pyside6-rcc"
|
||||
UIC="pyside6-uic"
|
||||
elif command -v /usr/local/bin/pyside6-rcc &> /dev/null; then
|
||||
echo "/usr/local/bin/pyside6-rcc detected. using /usr/local/bin/pyside6 tools."
|
||||
RCC="/usr/local/bin/pyside6-rcc"
|
||||
UIC="/usr/local/bin/pyside6-uic"
|
||||
elif command -v /usr/lib/qt6/rcc &> /dev/null; then
|
||||
echo "/usr/lib/qt6/rcc detected. using /usr/lib/qt6/rcc and uic tools."
|
||||
RCC="/usr/lib/qt6/rcc -g python"
|
||||
UIC="/usr/lib/qt6/uic -g python"
|
||||
elif command -v /usr/local/PySide6/bin/rcc &> /dev/null; then
|
||||
echo "/usr/local/PySide6/bin/rcc detected. using /usr/local/PySide6/bin/rcc and uic tools."
|
||||
RCC="/usr/local/PySide6/bin/rcc -g python"
|
||||
UIC="/usr/local/PySide6/bin/uic -g python"
|
||||
fi
|
||||
|
||||
@@ -17,7 +17,7 @@ Write-Output "done"
|
||||
|
||||
foreach ($QT_UI in $QT_UI_ARRAY)
|
||||
{
|
||||
Write-Output "Compiling $QT_UI.ui Qt UI file"
|
||||
Write-Output "Removing $QT_UI.ui Qt UI file"
|
||||
Remove-Item -Path "src\lce_qt_launcher\ui_$QT_UI.py"
|
||||
Write-Output "done"
|
||||
}
|
||||
|
||||
@@ -9,8 +9,9 @@ more up to date."
|
||||
|
||||
echo "1. Ntuika portable build"
|
||||
echo "2. Arch Packages (Require Arch)"
|
||||
# echo "3. Flatpak. (Hightly experiental)"
|
||||
echo "Choose a option (between 1 and 2):"
|
||||
echo "3. AppImage (GNU/Linux Only)"
|
||||
# echo "4. Flatpak. (Hightly experiental)"
|
||||
echo "Choose a option (between 1 and 3):"
|
||||
|
||||
read -r user_input
|
||||
|
||||
@@ -35,8 +36,10 @@ elif [[ $user_input == "2" ]]; then
|
||||
cd "dev"
|
||||
makepkg -s
|
||||
fi
|
||||
elif [[ $user_input == "3" ]]; then
|
||||
pyproject-appimage
|
||||
# flatpak is not ready yet
|
||||
# elif [[ $user_input == "3" ]]; then
|
||||
# elif [[ $user_input == "4" ]]; then
|
||||
# cd packages/flatpak
|
||||
# flatpak-builder --user --force-clean --install build-dir io.github.xgui4.lce_qt_launcher.yml --install-deps-from=flathub
|
||||
fi
|
||||
Reference in New Issue
Block a user