Skip to content

Commit 391a777

Browse files
committed
added mac build
1 parent b5540c1 commit 391a777

4 files changed

Lines changed: 98 additions & 47 deletions

File tree

.github/workflows/release.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,31 @@ jobs:
5353
name: linux-dist
5454
path: dist/*
5555

56+
build-macos:
57+
runs-on: macos-latest
58+
steps:
59+
- name: Checkout code
60+
uses: actions/checkout@v4
61+
62+
- name: Setup Node.js
63+
uses: actions/setup-node@v4
64+
with:
65+
node-version: '22'
66+
67+
- name: Install dependencies
68+
run: npm install
69+
70+
- name: Run dist build (macOS)
71+
run: npm run dist-mac
72+
73+
- name: Upload macOS artifacts
74+
uses: actions/upload-artifact@v4
75+
with:
76+
name: macos-dist
77+
path: dist/*
78+
5679
release:
57-
needs: [build-windows, build-linux]
80+
needs: [build-windows, build-linux, build-macos]
5881
runs-on: ubuntu-latest
5982
steps:
6083
- name: Checkout code (for git log)
@@ -79,6 +102,12 @@ jobs:
79102
name: linux-dist
80103
path: dist
81104

105+
- name: Download macOS artifacts
106+
uses: actions/download-artifact@v4
107+
with:
108+
name: macos-dist
109+
path: dist
110+
82111
- name: Get version from package.json
83112
id: package_version
84113
run: echo "version=v$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
@@ -105,5 +134,7 @@ jobs:
105134
dist/*.snap
106135
dist/*.html
107136
dist/*.7z
137+
dist/*.dmg
138+
dist/*.pkg
108139
env:
109140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@
88
---
99

1010
## Quickstart
11-
1. Download the [latest release](https://github.com/Delta4AI/GraphLensLite/releases/latest) for your OS
12-
2. (Optional) Download a [template](templates/simple-template.xlsx) and populate with your own data
13-
3. Launch Graph Lens Lite and start exploring by either loading a demo network or a file
14-
11+
1. Download the [latest release](https://github.com/Delta4AI/GraphLensLite/releases/latest):
12+
- **Windows**: `Graph Lens Lite Setup X.X.X.exe` (installer) or `Graph Lens Lite X.X.X.exe` (portable)
13+
- **macOS**: `Graph Lens Lite-X.X.X.dmg` or `Graph Lens Lite-X.X.X.zip`
14+
- **Linux**: `Graph Lens Lite-X.X.X.AppImage`, `graph-lens-lite_X.X.X_amd64.deb`, or `graph-lens-lite_X.X.X_amd64.snap`
15+
- **Web (no install)**: `graph-lense-lite_inline_X.X.X.html`
16+
- **From source**: clone the repo and run `npm install` then `npm run serve`
17+
2. (Optional) Download a [template](templates/simple-template.xlsx) and add your data
18+
3. Launch Graph Lens Lite and load a demo or your file
1519
---
1620

1721
## Screenshots

package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616
"bundle:prod": "esbuild src/gll.js --bundle --minify --target=es2020 --drop:debugger --legal-comments=none --outfile=src/gll.bundle.js",
1717
"bundle:watch": "esbuild src/gll.js --bundle --outfile=src/gll.bundle.js --watch --sourcemap",
1818
"bundle:serve": "esbuild src/gll.js --bundle --outfile=src/gll.bundle.js --watch --sourcemap --servedir=src",
19-
"create-inline-html": "node src/package/inline_html.mjs src/graph_lens_lite.html dist/graph-lens-lite_${npm_package_version}.html",
20-
"create-gll-zip": "cd src && zip -r ../dist/GLL-source-bundle_${npm_package_version}.zip gll.bundle.js graph_lens_lite.html style.css lib/g6.min.js lib/exceljs.min.js ../templates/simple-template.xlsx",
19+
"create-inline-html": "node src/package/inline_html.mjs src/graph_lens_lite.html dist/graph-lens-lite_inline_${npm_package_version}.html",
2120
"inject-excel-template": "node src/package/inject_excel_template.mjs",
2221
"substitute-gll": "node src/package/substitute_gll_bundle_reference.js",
2322
"dist:prep": "node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && npm run bundle:prod && npm run inject-excel-template && npm run substitute-gll start && npm run create-inline-html",
24-
"dist:prep:linux": "npm run clean:linux && npm run dist:prep && npm run create-gll-zip",
23+
"dist:prep:linux": "npm run clean:linux && npm run dist:prep",
2524
"dist-windows": "npm run dist:prep && electron-builder --win --publish=never && npm run substitute-gll end",
2625
"dist-linux": "npm run dist:prep:linux && electron-builder --linux --publish=never && npm run substitute-gll end",
26+
"dist-mac": "npm run dist:prep && electron-builder --mac --publish=never && npm run substitute-gll end",
27+
"dist": "npm run dist-linux && npm run dist-windows",
2728
"serve": "npx http-server src -p 8000 --cors -o /graph_lens_lite.html "
2829
},
2930
"build": {
@@ -37,8 +38,7 @@
3738
"win": {
3839
"target": [
3940
"nsis",
40-
"portable",
41-
"zip"
41+
"portable"
4242
],
4343
"signAndEditExecutable": false
4444
},
@@ -50,6 +50,12 @@
5050
],
5151
"category": "Graphics",
5252
"maintainer": "Delta 4 GmbH <office@delta4.ai>"
53+
},
54+
"mac": {
55+
"target": [
56+
"dmg",
57+
"zip"
58+
]
5359
}
5460
},
5561
"devDependencies": {

0 commit comments

Comments
 (0)