Skip to content

Commit c1a7ae8

Browse files
committed
docker-action fix/apple notarization fix/windows firewall prompt fix
1 parent 7146dea commit c1a7ae8

File tree

5 files changed

+23
-39
lines changed

5 files changed

+23
-39
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,46 @@ on:
66
- '[0-9]+.[0-9]+.[0-9]+'
77

88
env:
9-
VERSION: ''
109
REGISTRY: ghcr.io
11-
IMAGE_NAME: 'rdfcraft'
10+
IMAGE_NAME: rdfcraft
1211

1312
jobs:
1413
docker:
1514
permissions:
16-
packages: write
1715
contents: read
16+
packages: write
1817
runs-on: ubuntu-latest
1918
steps:
20-
- name: extract version
21-
id: extract_version
22-
run: |
23-
echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3)" >> "${GITHUB_ENV}"
2419
- name: Checkout
2520
uses: actions/checkout@v4
21+
22+
# Ensure lowercase owner for GHCR path
23+
- name: Compute owner and version
24+
run: |
25+
echo "OWNER=${GITHUB_REPOSITORY_OWNER@L}" >> "$GITHUB_ENV"
26+
echo "VERSION=${GITHUB_REF_NAME}" >> "$GITHUB_ENV"
27+
2628
- name: Set up QEMU
2729
uses: docker/setup-qemu-action@v3
30+
2831
- name: Set up Docker Buildx
2932
uses: docker/setup-buildx-action@v3
30-
- name: Login to Docker Hub
33+
34+
- name: Login to GHCR
3135
uses: docker/login-action@v3
3236
with:
3337
registry: ${{ env.REGISTRY }}
34-
username: ${{ github.actor }}
38+
username: ${{ env.OWNER }}
3539
password: ${{ secrets.GITHUB_TOKEN }}
40+
3641
- name: Build and push
3742
uses: docker/build-push-action@v5
3843
with:
3944
context: .
4045
platforms: linux/amd64,linux/arm64
4146
push: true
47+
# Set to true if you want provenance; if you still hit errors, try false
48+
provenance: false
4249
tags: |
43-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
44-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
50+
${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:${{ env.VERSION }}
51+
${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.IMAGE_NAME }}:latest

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ jobs:
7474
./scripts/mac/notarize-bundle.sh
7575
7676
# Zip the RDFCraft.app so it remains a folder after download
77-
- name: Create ZIP from .app
77+
- name: Rename the zip file
7878
run: |
7979
cd dist
80-
zip -r RDFCraft-mac.zip RDFCraft.app
80+
mv RDFCraft.zip RDFCraft-mac.zip
8181
8282
- name: Upload Mac Artifact
8383
uses: actions/upload-artifact@v4

README.MD

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,6 @@ From [Releases](https://github.com/MaastrichtU-IDS/RDFCraft/releases) page,
4040
download the latest release for your OS and extract the contents if it is
4141
compressed. Run the executable and you are good to go.
4242

43-
> [!WARNING]
44-
>
45-
> On macOS, because app is not notarized by Apple, you need to run following
46-
> command to bypass the gatekeeper:
47-
>
48-
> ```bash
49-
> xattr -rd com.apple.quarantine </path/to/RDFCraft.app>
50-
> ```
51-
>
52-
> More information about gatekeeper can be found
53-
> [here](https://support.apple.com/en-us/HT202491).
54-
5543
### With Docker 🐳
5644

5745
Build the Docker Image:

docs/README.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,6 @@ From [Releases](https://github.com/MaastrichtU-IDS/RDFCraft/releases) page,
4040
download the latest release for your OS and extract the contents if it is
4141
compressed. Run the executable and you are good to go.
4242

43-
> [!WARNING]
44-
>
45-
> On macOS, because app is not notarized by Apple, you need to run following
46-
> command to bypass the gatekeeper:
47-
>
48-
> ```bash
49-
> xattr -rd com.apple.quarantine </path/to/RDFCraft.app>
50-
> ```
51-
>
52-
> More information about gatekeeper can be found
53-
> [here](https://support.apple.com/en-us/HT202491).
54-
5543
## Getting Started 🚦
5644

5745
You can find a detailed guide on how to use RDFCraft in the

main.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ def get_free_port():
8484
def start_fastapi():
8585
import uvicorn
8686

87-
uvicorn.run(app, host="0.0.0.0", port=port, log_config=None)
87+
# DO NOT Serve on 0.0.0.0, Windows will show firewall prompt on every launch
88+
uvicorn.run(app, host="127.0.0.1", port=port, log_config=None)
8889

8990

9091
def on_closing():
@@ -104,7 +105,7 @@ def on_closing():
104105
# Create window
105106
window = webview.create_window(
106107
"RDFCraft",
107-
f"http://localhost:{port}",
108+
f"http://127.0.0.1:{port}",
108109
min_size=(800, 600),
109110
resizable=True,
110111
)

0 commit comments

Comments
 (0)