diff --git a/.gitea/workflows/build-linux.yaml b/.gitea/workflows/build-linux.yaml new file mode 100644 index 0000000..8e7fd3a --- /dev/null +++ b/.gitea/workflows/build-linux.yaml @@ -0,0 +1,29 @@ +name: Build Linux +on: [push, pull_request] + +jobs: + build: + name: Build Linux + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + + - name: Install Dependencies + run: | + pip install -r requirements.txt + + - name: Build Executable + run: | + pyinstaller --onefile --windowed --name TeletextEditor_Linux --paths src src/main.py + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: TeletextEditor-Linux + path: dist/TeletextEditor_Linux diff --git a/.gitea/workflows/build-windows.yaml b/.gitea/workflows/build-windows.yaml new file mode 100644 index 0000000..5adebef --- /dev/null +++ b/.gitea/workflows/build-windows.yaml @@ -0,0 +1,29 @@ +name: Build Windows +on: [push, pull_request] + +jobs: + build: + name: Build Windows + runs-on: windows-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: '3.12' + + - name: Install Dependencies + run: | + pip install -r requirements.txt + + - name: Build Executable + run: | + pyinstaller --onefile --windowed --name TeletextEditor_Windows.exe --paths src src/main.py + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: TeletextEditor-Windows + path: dist/TeletextEditor_Windows.exe diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..7e40a3b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +PyQt6 +pyinstaller