WIP: appdmg to generate .dmg installer for mac

pull/58/head
nilesh 2022-07-30 08:15:36 +01:00
rodzic 20ed034145
commit c8cd863e37
3 zmienionych plików z 19 dodań i 0 usunięć

BIN
AppIcon.icns 100644

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -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 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. 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
```

8
appdmg.json 100644
Wyświetl plik

@ -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" }
]
}