@infekted11/stillnote 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,15 +4,14 @@ A local-first Markdown notes app starter built with Electron, Vite, and CodeMirr
4
4
 
5
5
  ## Install the npm package
6
6
 
7
- Stillnote can be installed as a desktop app from GitHub Packages. Install Node.js and npm first. Then authenticate npm with a GitHub personal access token (classic) that has the `read:packages` scope. The GitHub account used by the token must have access to the package.
7
+ Stillnote is available from the public npm registry. Install Node.js and npm, then install and launch the app:
8
8
 
9
9
  ```sh
10
- npm login --scope=@infekted11 --auth-type=legacy --registry=https://npm.pkg.github.com
11
- npm install --global @infekted11/stillnote@1.0.1
10
+ npm install --global @infekted11/stillnote@latest
12
11
  stillnote
13
12
  ```
14
13
 
15
- When prompted, enter your GitHub username, paste the token as the password, and enter your email address. npm saves the login in your user config. The `stillnote` command launches the desktop app.
14
+ The first launch downloads the Electron binary for your platform and requires an internet connection. Later launches reuse that binary. See [Electron's installation notes](https://www.electronjs.org/docs/latest/tutorial/installation#binary-download-step). On macOS, allow Stillnote to access Keychain if prompted so it can read credentials saved by the app.
16
15
 
17
16
  To update Stillnote to the latest published version, run:
18
17
 
@@ -66,13 +65,13 @@ npm run dist:win
66
65
  npm run dist:linux
67
66
  ```
68
67
 
69
- The installers are written to `release/`. macOS creates a DMG and ZIP, Windows creates an NSIS installer, and Linux creates an AppImage and DEB package. `npm run dist` asks electron-builder to package for the host platform. Cross-platform builds are not equally reliable from every host. To create a GitHub release with installers for all three platforms, push a version tag matching the package version, such as `v1.0.1`. The workflow in `.github/workflows/release-app.yml` builds each platform on its native runner and attaches the installers to that release. Download an installer from the command line with GitHub CLI, for example:
68
+ The installers are written to `release/`. macOS creates a DMG and ZIP, Windows creates an NSIS installer, and Linux creates an AppImage and DEB package. `npm run dist` asks electron-builder to package for the host platform. Cross-platform builds are not equally reliable from every host. To create a GitHub release with installers for all three platforms, push a version tag matching the package version, such as `v1.1.1`. The workflow in `.github/workflows/release-app.yml` builds each platform on its native runner and attaches the installers to that release. Download an installer from the command line with GitHub CLI, for example:
70
69
 
71
70
  ```sh
72
71
  gh release download --repo Infekted11/Stillnote --pattern '*.dmg'
73
72
  ```
74
73
 
75
- Change the pattern to `*.exe`, `*.AppImage`, or `*.deb` for Windows or Linux. The latest release is used by default; add a tag such as `v1.0.1` before `--repo` to download from a specific release.
74
+ Change the pattern to `*.exe`, `*.AppImage`, or `*.deb` for Windows or Linux. The latest release is used by default; add a tag such as `v1.1.1` before `--repo` to download from a specific release.
76
75
 
77
76
  Unsigned macOS builds can be opened locally, but distributing them broadly requires Apple Developer signing and notarization to avoid Gatekeeper warnings. Windows builds can also be signed with a code-signing certificate; without one, Windows may show a reputation warning.
78
77
 
Binary file
package/electron/main.cjs CHANGED
@@ -5,6 +5,9 @@ const path = require('node:path');
5
5
  const os = require('node:os');
6
6
  const crypto = require('node:crypto');
7
7
 
8
+ // Keep the Keychain service name stable between the npm CLI and packaged app.
9
+ app.setName('Stillnote');
10
+
8
11
  let mainWindow;
9
12
  let vaultPath = null;
10
13
  let lastNote = null;
@@ -739,7 +742,8 @@ app.whenReady().then(() => {
739
742
  callback(permission === 'media' && audioOnly && trustedAppPage);
740
743
  });
741
744
  if (process.platform === 'darwin' && app.dock) {
742
- app.dock.setIcon(nativeImage.createFromPath(path.join(__dirname, '../main-logo.icns')));
745
+ const dockIcon = nativeImage.createFromPath(path.join(__dirname, '../assets/icon.png'));
746
+ if (!dockIcon.isEmpty()) app.dock.setIcon(dockIcon);
743
747
  }
744
748
  createWindow();
745
749
  app.on('activate', () => { if (BrowserWindow.getAllWindows().length === 0) createWindow(); });
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@infekted11/stillnote",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
7
7
  },
8
8
  "private": false,
9
9
  "description": "A local-first Markdown workspace.",
10
+ "productName": "Stillnote",
10
11
  "main": "electron/main.cjs",
11
12
  "bin": {
12
13
  "stillnote": "bin/stillnote.cjs"
@@ -15,6 +16,7 @@
15
16
  "bin/",
16
17
  "dist/",
17
18
  "electron/",
19
+ "assets/icon.png",
18
20
  "main-logo.icns",
19
21
  "README.md"
20
22
  ],
@@ -46,11 +48,11 @@
46
48
  "@lezer/highlight": "^1.2.1",
47
49
  "@lezer/markdown": "^1.8.1",
48
50
  "animejs": "^4.5.0",
51
+ "concurrently": "^9.1.2",
52
+ "electron-builder": "^26.0.12",
49
53
  "occt-import-js": "^0.0.23",
50
54
  "pdfjs-dist": "^6.4.299",
51
55
  "three": "^0.186.1",
52
- "concurrently": "^9.1.2",
53
- "electron-builder": "^26.0.12",
54
56
  "vite": "^6.1.0",
55
57
  "wait-on": "^8.0.2"
56
58
  },