diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml new file mode 100644 index 0000000..7ca077f --- /dev/null +++ b/.github/workflows/build-windows.yml @@ -0,0 +1,40 @@ +name: Build Windows Executable + +on: + workflow_dispatch: + release: + types: [created] + +jobs: + build-windows: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + + - name: Install dependencies and build + run: | + python -m pip install --upgrade pip + pip install pyinstaller + pip install -r requirements.txt + python -m PyInstaller --onefile --console --name FNGGLocker main.py + + - name: Upload executable artifact + uses: actions/upload-artifact@v4 + with: + name: FNGGLocker-Windows + path: dist/FNGGLocker.exe + + - name: Upload to release + if: github.event_name == 'release' + uses: softprops/action-gh-release@v1 + with: + files: dist/FNGGLocker.exe + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 99bde43..9af1c51 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ builtinemotes.json FNGGLockerGenerator.spec locker.txt moreoffers.json +*.spec \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..36b8156 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,4 @@ +aiohttp>=3.13.3 +requests>=2.32.5 +colored>=2.3.1 +colorama>=0.4.6 \ No newline at end of file