RustImplementation #25

Merged
mysticmomba merged 13 commits from RustImplementation into master 2025-11-07 11:39:51 -05:00
Showing only changes of commit a4a0258a06 - Show all commits
+52 -47
View File
@@ -1,47 +1,52 @@
name: Build EXE and Release
run-name: ${{ gitea.actor }}
on:
push:
branches:
- master
jobs:
Build and Release:
runs-on: debian-stable
env:
DISPLAY: :99
steps:
- name: Install Prerequisites
run: |
dpkg --add-architecture i386
apt update > /dev/null 2>&1
apt install git curl wine32:i386 xvfb -y > /dev/null 2>&1
- name: Start X Virtual Framebuffer (Xvfb)
run: |
# Start Xvfb in the background using the defined display number
Xvfb :99 -screen 0 1024x768x16 &
- name: Cloning Repository
run: |
git clone https://brotoskyj:${{ secrets.RUNNER_TOKEN }}@git.racooncity.org/brotoskyj/AirlockTools --branch RustImplementation
pwd
ls
- name: Setting Up Build Environment
run: |
apt install wine64 -y -qq > /dev/null 2>&1
curl -L -o python.exe https://www.python.org/ftp/python/3.13.9/python-3.13.9-amd64.exe
wine python.exe /quiet /NoWeb InstallAllUsers=1 PrependPath=1 TargetDir=C:/Python313
cp -r AirlockTools/ ~/.wine/drive_c/Python313/
cd ~/.wine/drive_c/Python313
wine python.exe -m pip install nuitka pywin32 keyring --break-system-packages
wine python.exe -m pip install -r AirlockTools/requirements.txt
- name: Build Executable
env:
DISPLAY: :99
WINEDEBUG: -all
run: |
xvfb-run -a wine cmd /c nuitka --onefile --onefile-windows-splash-screen-image=AirlockTools/loading.png --follow-imports --include-module=keyring.backends.Windows --include-module=win32cred --include-module=pywintypes --include-module=pythoncom --include-module=win32api --include-module=win32security --include-module=win32con --windows-product-name='LoXide' --windows-product-version='1.2.10.0' --windows-company-name='WVUM IRT' --windows-icon-from-ico=AirlockTools/IRT_icon_32-512.ico AirlockTools/AirlockTools_client.py --deployment --assume-yes-for-downloads
##name: Build EXE and Release
##run-name: ${{ gitea.actor }}
##on:
## push:
## branches:
## - master
##
##jobs:
## Build and Release:
## runs-on: debian-stable
## env:
## DISPLAY: :99
##
## steps:
## - name: Install Prerequisites
## run: |
## dpkg --add-architecture i386
## apt update > /dev/null 2>&1
## apt install git curl wine32:i386 xvfb -y > /dev/null 2>&1
##
## - name: Start X Virtual Framebuffer (Xvfb)
## run: |
## # Start Xvfb in the background using the defined display number
## Xvfb :99 -screen 0 1024x768x16 &
##
## - name: Cloning Repository
## run: |
## git clone https://brotoskyj:${{ secrets.RUNNER_TOKEN }}@git.racooncity.org/brotoskyj/AirlockTools --branch RustImplementation
## pwd
## ls
##
## - name: Setting Up Build Environment
## run: |
## apt install wine64 -y -qq > /dev/null 2>&1
## curl -L -o python.exe https://www.python.org/ftp/python/3.13.9/python-3.13.9-amd64.exe
## wget https://download.visualstudio.microsoft.com/download/pr/0c8b0c6f-3d30-4d06-98d8-3a7a42f3e78a/64c0b0f3b8b2d0e11d9a2303d5e39a22/ndp472-devpack-ENU.exe -O dotnet472.exe
## wget https://aka.ms/vs/16/release/vs_buildtools.exe -O vstools2019.exe
## wine dotnet472.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT /log dotnet472.log
## wine python.exe /quiet /NoWeb InstallAllUsers=1 PrependPath=1 TargetDir=C:/Python313
## wine vstools2019.exe --quiet --wait --norestart --nocache --installPath "C:\\BuildTools" --add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --acceptEula
## cp -r AirlockTools/ ~/.wine/drive_c/Python313/
## cd ~/.wine/drive_c/Python313
## wine python.exe -m pip install nuitka pywin32 keyring --break-system-packages
## wine python.exe -m pip install -r AirlockTools/requirements.txt
##
## - name: Build Executable
## env:
## DISPLAY: :99
## WINEDEBUG: -all
## run: |
## xvfb-run -a wine cmd /c nuitka --onefile --onefile-windows-splash-screen-image=AirlockTools/loading.png --mingw64 --follow-imports --include-module=keyring.backends.Windows --include-module=win32cred --include-module=pywintypes --include-module=pythoncom --include-module=win32api --include-module=win32security --include-module=win32con --windows-product-name='LoXide' --windows-product-version='1.2.10.0' --windows-company-name='WVUM IRT' --windows-icon-from-ico=AirlockTools/IRT_icon_32-512.ico AirlockTools/AirlockTools_client.py --deployment --assume-yes-for-downloads
##