Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Rename instances of win32 to generic win or the appropriate bit where applicable * Remove files used in GTK2 * Add spec file for use with PyInstaller * Remove Python bbfreeze Script * Add Github Action To Build Releases * Add Modified script to make files used by NSIS * Update Readme
- Loading branch information
Showing
41 changed files
with
1,007 additions
and
1,290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
name: CD | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Build-Windows-x64: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
architecture: 'x64' | ||
|
||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: '%LOCALAPPDATA%\pip\Cache' | ||
# Look to see if there is a cache hit for the corresponding requirements file | ||
key: ${{ runner.os }}-pip-${{ hashFiles('tox.ini', 'setup.py', 'requirements*.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
${{ runner.os }}- | ||
- name: Install dependencies | ||
run: | | ||
$WebClient = New-Object System.Net.WebClient | ||
$WebClient.DownloadFile("https://ci.appveyor.com/api/buildjobs/wgsvc79ov8jsy8dc/artifacts/gvsbuild-vs16-x86.zip","C:\GTK.zip") | ||
7z x GTK.zip.zip -oc:\GTK | ||
$env:Path = "C:\GTK\release;$env:Path" | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install libtorrent==1.2.* | ||
pip install -r requirements.txt | ||
pip install pyinstaller | ||
- name: Install Deluge | ||
run: | | ||
python setup.py clean | ||
python setup.py build | ||
python setup.py install | ||
- name: Freeze Deluge | ||
run: | | ||
pyinstaller --clean C:\deluge\packaging\win\delugewin64.spec --distpath C:\deluge\packaging\win\freeze | ||
- name: Make Deluge Installer | ||
run: | | ||
Set-Location -Path 'C:\deluge\packaging\win' | ||
python delugensis.py | ||
makensis deluge-win64-installer.nsi | ||
Build-Windows-x86: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
architecture: 'x86' | ||
|
||
- name: Cache pip | ||
uses: actions/cache@v2 | ||
with: | ||
path: '%LOCALAPPDATA%\pip\Cache' | ||
# Look to see if there is a cache hit for the corresponding requirements file | ||
key: ${{ runner.os }}-pip-${{ hashFiles('tox.ini', 'setup.py', 'requirements*.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
${{ runner.os }}- | ||
- name: Install dependencies | ||
run: | | ||
$WebClient = New-Object System.Net.WebClient | ||
$WebClient.DownloadFile("https://ci.appveyor.com/api/buildjobs/wgsvc79ov8jsy8dc/artifacts/gvsbuild-vs16-x86.zip","C:\GTK.zip") | ||
7z x GTK.zip.zip -oc:\GTK | ||
$env:Path = "C:\GTK\release;$env:Path" | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install libtorrent==1.2.* | ||
pip install -r requirements.txt | ||
pip install pyinstaller | ||
- name: Install Deluge | ||
run: | | ||
python setup.py clean | ||
python setup.py build | ||
python setup.py install | ||
- name: Freeze Deluge | ||
run: | | ||
pyinstaller --clean C:\deluge\packaging\win\delugewin32.spec --distpath C:\deluge\packaging\win\freeze | ||
- name: Make Deluge Installer | ||
run: | | ||
Set-Location -Path 'C:\deluge\packaging\win' | ||
python delugensis.py | ||
makensis deluge-win32-installer.nsi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
= Deluge Installer for Windows = | ||
|
||
Instructions for building the Deluge NSIS Installer for Windows Vista/7/8/8.1/10/11. | ||
|
||
== Dependencies == | ||
* Deluge build: http://dev.deluge-torrent.org/wiki/Installing/Source#WindowsDependencies | ||
* PyInstaller: https://pypi.org/project/pyinstaller/ | ||
* NSIS: http://nsis.sourceforge.net/Download | ||
|
||
== Build Steps == | ||
|
||
1. Build and Install Deluge on Windows. | ||
|
||
2. Run the pyinstaller from the deluge\packaging\win directory with delugewin64.spec if you built deluge with 64-bit python or delugewin32.spec with 32-bit python: | ||
|
||
pyinstaller --clean delugewin64.spec --distpath .\packaging\win32\freeze | ||
|
||
The result is a PyInstaller version of Deluge in `packaging\win32\freeze`. | ||
|
||
3. Run the NSIS script (right-click and choose `Compile with NSIS`) | ||
|
||
The result is a standalone installer in the `packaging\win32` directory. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.