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 - name: Build Assets
run: | run: |
python pkgutils.py manual python pkgutils.py build-assets
python pkgutils.py sample
python pkgutils.py qtlrelease
- name: Upload Artifacts - name: Upload Artifacts
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
+1 -1
View File
@@ -6,7 +6,7 @@ jobs:
buildAssets: buildAssets:
uses: ./.github/workflows/build_assets.yml uses: ./.github/workflows/build_assets.yml
buildLinux: buildLinux-AppImage:
needs: buildAssets needs: buildAssets
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
+18
View File
@@ -15,5 +15,23 @@ jobs:
with: with:
python-version: "3.12" python-version: "3.12"
architecture: x64 architecture: x64
- name: Checkout Source - name: Checkout Source
uses: actions/checkout@v4 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: | run: |
pip install -U -r requirements.txt -r tests/requirements.txt pip install -U -r requirements.txt -r tests/requirements.txt
- name: Run Build Commands - name: Run Build Commands
run: python pkgutils.py qtlrelease sample run: |
python pkgutils.py qtlrelease
python pkgutils.py sample
- name: Run Tests - name: Run Tests
run: | run: |
export QT_QPA_PLATFORM=offscreen 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 fi
source $ENVPATH/bin/activate source $ENVPATH/bin/activate
pip3 install -r docs/source/requirements.txt pip3 install -r docs/source/requirements.txt
python3 pkgutils.py qtlrelease manual sample python3 pkgutils.py build-assets
deactivate deactivate
echo "" echo ""
+1 -8
View File
@@ -17,16 +17,9 @@ if [ ! -d $ENVPATH ]; then
fi fi
source $ENVPATH/bin/activate source $ENVPATH/bin/activate
pip3 install -r docs/source/requirements.txt pip3 install -r docs/source/requirements.txt
python3 pkgutils.py clean-assets python3 pkgutils.py build-assets
python3 pkgutils.py qtlrelease manual sample
deactivate deactivate
echo ""
echo " Building Windows Source Zip"
echo "================================================================================"
echo ""
python3 pkgutils.py windows-zip
echo "" echo ""
echo " Building Linux Packages" echo " Building Linux Packages"
echo "================================================================================" echo "================================================================================"
+1 -1
View File
@@ -1,6 +1,6 @@
; Script for building setup.exe installer with Inno Setup ; Script for building setup.exe installer with Inno Setup
#define nwAppDir "%%dir%%\dist" #define nwAppDir "%%dist%%"
#define nwAppName "novelWriter" #define nwAppName "novelWriter"
#define nwAppVersion "%%version%%" #define nwAppVersion "%%version%%"
#define nwAppPublisher "novelWriter" #define nwAppPublisher "novelWriter"