electrify-web 1.0.0 → 1.0.3

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
@@ -11,8 +11,6 @@
11
11
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
12
12
  [![Node.js Version](https://img.shields.io/node/v/electrify-web.svg)](https://nodejs.org)
13
13
 
14
- <img src=".github/demo.gif" alt="Demo" width="600">
15
-
16
14
  </div>
17
15
 
18
16
  ---
@@ -37,7 +35,7 @@
37
35
 
38
36
  ## ✨ Features
39
37
 
40
- - 🚀 **One Command Build** - `electrify https://example.com`
38
+ - 🚀 **One Command Build** - `eweb https://example.com`
41
39
  - 🧙 **Interactive Wizard** - Guided setup for beginners
42
40
  - 📄 **Config Files** - YAML/JSON with inheritance support
43
41
  - 🎯 **Smart Presets** - Optimized for social, productivity, media apps
@@ -62,6 +60,9 @@ npx electrify-web https://example.com
62
60
 
63
61
  # Verify installation
64
62
  electrify --version
63
+
64
+ # Short alias
65
+ eweb --version
65
66
  ```
66
67
 
67
68
  ### Requirements
@@ -77,29 +78,29 @@ electrify --version
77
78
  ### Method 1: Interactive Wizard (Recommended)
78
79
 
79
80
  ```bash
80
- electrify wizard
81
+ eweb wizard
81
82
  ```
82
83
 
83
84
  ### Method 2: One-Line Build
84
85
 
85
86
  ```bash
86
- electrify https://web.whatsapp.com
87
+ eweb https://web.whatsapp.com
87
88
  ```
88
89
 
89
90
  ### Method 3: With Preset
90
91
 
91
92
  ```bash
92
- electrify https://web.whatsapp.com --preset social
93
+ eweb https://web.whatsapp.com --preset social
93
94
  ```
94
95
 
95
96
  ### Method 4: Config File
96
97
 
97
98
  ```bash
98
99
  # Generate config template
99
- electrify init
100
+ eweb init
100
101
 
101
102
  # Edit electrify.config.yaml, then build
102
- electrify build
103
+ eweb build
103
104
  ```
104
105
 
105
106
  ---
@@ -119,7 +120,7 @@ electrify build
119
120
 
120
121
  ```bash
121
122
  # List all presets
122
- electrify presets
123
+ eweb presets
123
124
  ```
124
125
 
125
126
  ---
@@ -152,7 +153,7 @@ extends: "./base.yaml"
152
153
  ### CLI Options
153
154
 
154
155
  ```bash
155
- electrify <url> [options]
156
+ eweb <url> [options]
156
157
 
157
158
  Options:
158
159
  -n, --name App name
@@ -176,7 +177,7 @@ See [API.md](API.md) for full documentation.
176
177
  Automatically detect and use PWA manifest settings:
177
178
 
178
179
  ```bash
179
- electrify https://web.whatsapp.com --pwa
180
+ eweb https://web.whatsapp.com --pwa
180
181
  ```
181
182
 
182
183
  This will:
@@ -193,10 +194,10 @@ Enable automatic updates for your app:
193
194
 
194
195
  ```bash
195
196
  # GitHub releases
196
- electrify https://example.com --auto-update github:myorg/myrepo
197
+ eweb https://example.com --auto-update github:myorg/myrepo
197
198
 
198
199
  # Custom update server
199
- electrify https://example.com --auto-update https://updates.example.com
200
+ eweb https://example.com --auto-update https://updates.example.com
200
201
  ```
201
202
 
202
203
  ---
@@ -206,7 +207,7 @@ electrify https://example.com --auto-update https://updates.example.com
206
207
  Check your environment:
207
208
 
208
209
  ```bash
209
- electrify doctor
210
+ eweb doctor
210
211
  ```
211
212
 
212
213
  Output:
@@ -229,13 +230,13 @@ Output:
229
230
 
230
231
  | Command | Description |
231
232
  |---------|-------------|
232
- | `electrify <url>` | Build app from URL |
233
- | `electrify wizard` | Interactive setup |
234
- | `electrify init` | Generate config template |
235
- | `electrify build` | Build from config file |
236
- | `electrify presets` | List available presets |
237
- | `electrify doctor` | Check environment |
238
- | `electrify --help` | Show all options |
233
+ | `eweb <url>` | Build app from URL |
234
+ | `eweb wizard` | Interactive setup |
235
+ | `eweb init` | Generate config template |
236
+ | `eweb build` | Build from config file |
237
+ | `eweb presets` | List available presets |
238
+ | `eweb doctor` | Check environment |
239
+ | `eweb --help` | Show all options |
239
240
 
240
241
  ---
241
242
 
@@ -299,11 +300,11 @@ npm test
299
300
 
300
301
  ## 📋 Changelog
301
302
 
302
- ### v1.0.0 (2024-12)
303
+ ### v1.0.0 (2025-12)
303
304
 
304
305
  **🎉 Initial Release - Revival of Nativefier**
305
306
 
306
- - ✅ Interactive wizard (`electrify wizard`)
307
+ - ✅ Interactive wizard (`eweb wizard`)
307
308
  - ✅ Config file support (YAML/JSON)
308
309
  - ✅ 8 smart presets
309
310
  - ✅ Network icon URL support
@@ -14,14 +14,16 @@ HAVE_IMAGEMAGICK=
14
14
  HAVE_ICONUTIL=
15
15
  HAVE_SIPS=
16
16
  HAVE_GRAPHICSMAGICK=
17
+ HAVE_MAGICK=
17
18
 
18
- type convert &>/dev/null && HAVE_IMAGEMAGICK=true
19
+ type magick &>/dev/null && HAVE_MAGICK=true
20
+ type convert &>/dev/null && [[ -z "$HAVE_MAGICK" ]] && HAVE_IMAGEMAGICK=true
19
21
  type iconutil &>/dev/null && HAVE_ICONUTIL=true
20
22
  type sips &>/dev/null && HAVE_SIPS=true
21
23
  type gm &>/dev/null && gm version | grep GraphicsMagick &>/dev/null && HAVE_GRAPHICSMAGICK=true
22
24
 
23
25
  [[ -z "$HAVE_ICONUTIL" ]] && { echo >&2 "Cannot find required iconutil executable"; exit 1; }
24
- [[ -z "$HAVE_IMAGEMAGICK" && -z "$HAVE_SIPS" && -z "$HAVE_GRAPHICSMAGICK" ]] && { echo >&2 "Cannot find required image converter, please install sips, imagemagick or graphicsmagick"; exit 1; }
26
+ [[ -z "$HAVE_MAGICK" && -z "$HAVE_IMAGEMAGICK" && -z "$HAVE_SIPS" && -z "$HAVE_GRAPHICSMAGICK" ]] && { echo >&2 "Cannot find required image converter, please install sips, imagemagick or graphicsmagick"; exit 1; }
25
27
 
26
28
  # Parameters
27
29
  SOURCE="$1"
@@ -11,9 +11,10 @@ set -e
11
11
  CONVERT=
12
12
 
13
13
  type gm &>/dev/null && gm version | grep GraphicsMagick &>/dev/null && CONVERT="gm convert"
14
- type convert &>/dev/null && CONVERT="convert"
14
+ type magick &>/dev/null && CONVERT="magick"
15
+ type convert &>/dev/null && [[ -z "$CONVERT" ]] && CONVERT="convert"
15
16
 
16
- [[ -z "$CONVERT" ]] && { echo >&2 "Cannot find required ImageMagick Convert or GraphicsMagick executable"; exit 1; }
17
+ [[ -z "$CONVERT" ]] && { echo >&2 "Cannot find required ImageMagick or GraphicsMagick executable"; exit 1; }
17
18
 
18
19
  SOURCE=$1
19
20
  DEST=$2
@@ -51,18 +51,21 @@ fi
51
51
  HAVE_IMAGEMAGICK=
52
52
  HAVE_SIPS=
53
53
  HAVE_GRAPHICSMAGICK=
54
+ HAVE_MAGICK=
54
55
  CONVERT=
55
56
 
56
- type gm &>/dev/null && gm version | grep GraphicsMagick &>/dev/null && HAVE_GRAPHICSMAGICK=true && CONVERT="gm convert"
57
- type convert &>/dev/null && HAVE_IMAGEMAGICK=true && CONVERT="convert"
58
57
  type sips &>/dev/null && HAVE_SIPS=true
58
+ type gm &>/dev/null && gm version | grep GraphicsMagick &>/dev/null && HAVE_GRAPHICSMAGICK=true && CONVERT="gm convert"
59
+ type magick &>/dev/null && HAVE_MAGICK=true && CONVERT="magick"
60
+ type convert &>/dev/null && [[ -z "$HAVE_MAGICK" ]] && HAVE_IMAGEMAGICK=true && CONVERT="convert"
59
61
 
60
- if [[ -n "$HAVE_IMAGEMAGICK" || -n "$HAVE_GRAPHICSMAGICK" ]]; then
62
+ # On macOS, prefer sips (native, more reliable)
63
+ if [[ -n "$HAVE_SIPS" ]]; then
64
+ make_iconset_sips "${SOURCE}" "${DEST}"
65
+ elif [[ -n "$HAVE_MAGICK" || -n "$HAVE_IMAGEMAGICK" || -n "$HAVE_GRAPHICSMAGICK" ]]; then
61
66
  PNG_PATH="$(mktemp -d -t nativefier-iconset-XXXXXX)/icon.png"
62
67
  "${BASH_SOURCE%/*}/convertToPng" "${SOURCE}" "${PNG_PATH}"
63
68
  make_iconset_imagemagick "${PNG_PATH}" "${DEST}"
64
- elif [[ -n "$HAVE_SIPS" ]]; then
65
- make_iconset_sips "${SOURCE}" "${DEST}"
66
69
  else
67
70
  echo >&2 "Cannot find convert or sips executables"; exit 1;
68
71
  fi
@@ -10,21 +10,23 @@ set -e
10
10
 
11
11
  HAVE_IMAGEMAGICK=
12
12
  HAVE_GRAPHICSMAGICK=
13
+ HAVE_MAGICK=
13
14
 
14
- type convert &>/dev/null && type identify &>/dev/null && HAVE_IMAGEMAGICK=true
15
+ type magick &>/dev/null && HAVE_MAGICK=true
16
+ type convert &>/dev/null && type identify &>/dev/null && [[ -z "$HAVE_MAGICK" ]] && HAVE_IMAGEMAGICK=true
15
17
  type gm &>/dev/null && gm version | grep GraphicsMagick &>/dev/null && HAVE_GRAPHICSMAGICK=true
16
18
 
17
- if [[ -z "$HAVE_IMAGEMAGICK" && -z "$HAVE_GRAPHICSMAGICK" ]]; then
18
- type convert >/dev/null 2>&1 || echo >&2 "Cannot find required ImageMagick 'convert' executable"
19
- type identify >/dev/null 2>&1 || echo >&2 "Cannot find required ImageMagick 'identify' executable"
20
- type gm &>/dev/null && gm version | grep GraphicsMagick &>/dev/null && echo >&2 "Cannot find GraphicsMagick"
21
- echo >&2 "ImageMagic or GraphicsMagic is required, please ensure they are in your PATH"
19
+ if [[ -z "$HAVE_MAGICK" && -z "$HAVE_IMAGEMAGICK" && -z "$HAVE_GRAPHICSMAGICK" ]]; then
20
+ echo >&2 "ImageMagick or GraphicsMagick is required, please ensure they are in your PATH"
22
21
  exit 1
23
22
  fi
24
23
 
25
24
  CONVERT="convert"
26
25
  IDENTIFY="identify"
27
- if [[ -z "$HAVE_IMAGEMAGICK" ]]; then
26
+ if [[ -n "$HAVE_MAGICK" ]]; then
27
+ CONVERT="magick"
28
+ IDENTIFY="magick identify"
29
+ elif [[ -z "$HAVE_IMAGEMAGICK" ]]; then
28
30
  # we must have GraphicsMagick then
29
31
  CONVERT="gm convert"
30
32
  IDENTIFY="gm identify"
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "nativefier",
3
- "version": "51.0.1",
3
+ "version": "1.0.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "nativefier",
9
- "version": "51.0.1",
9
+ "version": "1.0.3",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@electron/asar": "^3.2.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "electrify-web",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "description": "Transform any website into a native desktop app with one command",
5
5
  "license": "MIT",
6
6
  "author": "Electrify Web Contributors",