Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ensaremirerol committed Jan 23, 2025
1 parent a4fe92d commit e7ab08b
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 48,824 deletions.
55 changes: 45 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,14 @@ name: Build Application
on:
push:
tags:
- 'v*'
- '[0-9]+.[0-9]+.[0-9]+'

jobs:
build-mac:
# This job runs on macOS
# It requires just and uv to be installed
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install just
uses: extractions/setup-just@v2
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install node
Expand All @@ -22,8 +19,28 @@ jobs:
node-version: '22.9.0'
- name: Build
run: |
just package-mac
# This will upload the built application to the artifacts application is located at dist/RDFCraft.app
mkdir -p bin
echo "Downloading RMLMapper"
curl -L https://github.com/RMLio/rmlmapper-java/releases/download/v7.2.0/rmlmapper-7.2.0-r374-all.jar -o bin/mapper.jar
echo "Building frontend"
npm run frontend:prod
echo "Installing python dependencies"
uv sync
echo "Building application"
uv run nuitka \
--standalone \
--product-version=${{ github.ref_name }} \
--file-version=${{ github.ref_name }} \
--output-dir=dist \
--include-data-dir=public=public \
--include-data-dir=bin=bin \
--macos-create-app-bundle \
--product-name=RDFCraft \
--assume-yes-for-downloads \
--deployment \
main.py
mv dist/main.app dist/RDFCraft.app
# This will upload the built application to the artifacts application is located at dist/RDFCraft.app
- name: Archive
uses: actions/upload-artifact@v3
with:
Expand All @@ -35,9 +52,6 @@ jobs:
# It requires just and uv to be installed
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install just
uses: extractions/setup-just@v2
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install node
Expand All @@ -46,7 +60,28 @@ jobs:
node-version: '22.9.0'
- name: Build
run: |
just package-win
mkdir -p bin
echo "Downloading RMLMapper"
curl -L https://github.com/RMLio/rmlmapper-java/releases/download/v7.2.0/rmlmapper-7.2.0-r374-all.jar -o bin/mapper.jar
echo "Building frontend"
npm run frontend:prod
echo "Installing python dependencies"
uv sync
echo "Building application"
.venv/Scripts/python -m nuitka \
--standalone \
--onefile \
--product-version=${{ github.ref_name }} \
--file-version=${{ github.ref_name }} \
--output-dir=dist \
--include-data-dir=public=public \
--include-data-dir=bin=bin \
--windows-disable-console \
--product-name=RDFCraft \
--assume-yes-for-downloads \
--deployment \
main.py
mv dist/main.exe dist/RDFCraft.exe
# This will upload the built application to the artifacts application is located at dist/RDFCraft.exe
- name: Archive
uses: actions/upload-artifact@v3
Expand Down
6 changes: 5 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ package-mac: install-dev
uv sync
uv run nuitka \
--standalone \
--product-version=0.1.0 \
--file-version=0.1.0 \
--output-dir=dist \
--include-data-dir=public=public \
--include-data-dir=bin=bin \
Expand All @@ -41,13 +43,15 @@ package-win: install-dev
uv sync
.venv/Scripts/python -m nuitka \
--standalone \
--onefile \
--product-version=0.1.0 \
--file-version=0.1.0 \
--output-dir=dist \
--include-data-dir=public=public \
--include-data-dir=bin=bin \
--windows-disable-console \
--product-name=RDFCraft \
--assume-yes-for-downloads \
--onefile \
--deployment \
main.py
mv dist/main.exe dist/RDFCraft.exe
Loading

0 comments on commit e7ab08b

Please sign in to comment.