diff --git a/AppIcon.icns b/AppIcon.icns new file mode 100644 index 0000000..a67433d Binary files /dev/null and b/AppIcon.icns differ diff --git a/README.md b/README.md index 98ed9bd..d7c08b5 100644 --- a/README.md +++ b/README.md @@ -50,3 +50,14 @@ The source data is in `db/*.js` files. The schema is described in [db/README.md] For the front-end, we write Svelte components in `src` and generate `bundle.js` and `bundle.css` via `npm run dev` / `npm run build`. For UI, we make use of TailwindCSS (currently loaded via CDN with some plugins) and Shoelace.Style. Whenever possible, we use Shoelace's existing components. + +## Build + +We use Neutralino.js to generate native apps for Mac/Windows/Linux. Currently only the .app file (not .dmg) for Mac runs correctly. + +``` +neu build +mv dist/learndb/learndb-mac_x64 dist/learndb/learndb-mac_x64.app +chmod +x dist/learndb/learndb-mac_x64.app +appdmg ./appdmg.json dist/learndb/LearnDB.dmg +``` diff --git a/appdmg.json b/appdmg.json new file mode 100644 index 0000000..d00369e --- /dev/null +++ b/appdmg.json @@ -0,0 +1,8 @@ +{ + "title": "LearnDB", + "icon": "AppIcon.icns", + "contents": [ + { "x": 448, "y": 344, "type": "link", "path": "/Applications" }, + { "x": 192, "y": 344, "type": "file", "path": "dist/learndb/learndb-mac_x64.app" } + ] +}