Rewrite build tools (#1958)

This commit is contained in:
Veronica Berglyd Olsen
2024-07-04 22:11:10 +02:00
committed by GitHub
8 changed files with 678 additions and 838 deletions
+1 -3
View File
@@ -25,9 +25,7 @@ jobs:
- name: Build Assets
run: |
python pkgutils.py manual
python pkgutils.py sample
python pkgutils.py qtlrelease
python pkgutils.py build-assets
- name: Upload Artifacts
uses: actions/upload-artifact@v4
+1 -1
View File
@@ -6,7 +6,7 @@ jobs:
buildAssets:
uses: ./.github/workflows/build_assets.yml
buildLinux:
buildLinux-AppImage:
needs: buildAssets
runs-on: ubuntu-latest
env:
+18
View File
@@ -15,5 +15,23 @@ jobs:
with:
python-version: "3.12"
architecture: x64
- name: Checkout Source
uses: actions/checkout@v4
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: nw-assets
path: novelwriter/assets
- name: Build Setup Installer
run: python pkgutils.py build-win-exe
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Win-Setup
path: dist/*.exe
if-no-files-found: error
retention-days: 14
+3 -1
View File
@@ -33,7 +33,9 @@ jobs:
run: |
pip install -U -r requirements.txt -r tests/requirements.txt
- name: Run Build Commands
run: python pkgutils.py qtlrelease sample
run: |
python pkgutils.py qtlrelease
python pkgutils.py sample
- name: Run Tests
run: |
export QT_QPA_PLATFORM=offscreen
+652 -823
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -18,7 +18,7 @@ if [ ! -d $ENVPATH ]; then
fi
source $ENVPATH/bin/activate
pip3 install -r docs/source/requirements.txt
python3 pkgutils.py qtlrelease manual sample
python3 pkgutils.py build-assets
deactivate
echo ""
+1 -8
View File
@@ -17,16 +17,9 @@ if [ ! -d $ENVPATH ]; then
fi
source $ENVPATH/bin/activate
pip3 install -r docs/source/requirements.txt
python3 pkgutils.py clean-assets
python3 pkgutils.py qtlrelease manual sample
python3 pkgutils.py build-assets
deactivate
echo ""
echo " Building Windows Source Zip"
echo "================================================================================"
echo ""
python3 pkgutils.py windows-zip
echo ""
echo " Building Linux Packages"
echo "================================================================================"
+1 -1
View File
@@ -1,6 +1,6 @@
; Script for building setup.exe installer with Inno Setup
#define nwAppDir "%%dir%%\dist"
#define nwAppDir "%%dist%%"
#define nwAppName "novelWriter"
#define nwAppVersion "%%version%%"
#define nwAppPublisher "novelWriter"