electrify-web 1.0.2 → 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
@@ -35,7 +35,7 @@
35
35
 
36
36
  ## ✨ Features
37
37
 
38
- - 🚀 **One Command Build** - `electrify https://example.com`
38
+ - 🚀 **One Command Build** - `eweb https://example.com`
39
39
  - 🧙 **Interactive Wizard** - Guided setup for beginners
40
40
  - 📄 **Config Files** - YAML/JSON with inheritance support
41
41
  - 🎯 **Smart Presets** - Optimized for social, productivity, media apps
@@ -60,6 +60,9 @@ npx electrify-web https://example.com
60
60
 
61
61
  # Verify installation
62
62
  electrify --version
63
+
64
+ # Short alias
65
+ eweb --version
63
66
  ```
64
67
 
65
68
  ### Requirements
@@ -75,29 +78,29 @@ electrify --version
75
78
  ### Method 1: Interactive Wizard (Recommended)
76
79
 
77
80
  ```bash
78
- electrify wizard
81
+ eweb wizard
79
82
  ```
80
83
 
81
84
  ### Method 2: One-Line Build
82
85
 
83
86
  ```bash
84
- electrify https://web.whatsapp.com
87
+ eweb https://web.whatsapp.com
85
88
  ```
86
89
 
87
90
  ### Method 3: With Preset
88
91
 
89
92
  ```bash
90
- electrify https://web.whatsapp.com --preset social
93
+ eweb https://web.whatsapp.com --preset social
91
94
  ```
92
95
 
93
96
  ### Method 4: Config File
94
97
 
95
98
  ```bash
96
99
  # Generate config template
97
- electrify init
100
+ eweb init
98
101
 
99
102
  # Edit electrify.config.yaml, then build
100
- electrify build
103
+ eweb build
101
104
  ```
102
105
 
103
106
  ---
@@ -117,7 +120,7 @@ electrify build
117
120
 
118
121
  ```bash
119
122
  # List all presets
120
- electrify presets
123
+ eweb presets
121
124
  ```
122
125
 
123
126
  ---
@@ -150,7 +153,7 @@ extends: "./base.yaml"
150
153
  ### CLI Options
151
154
 
152
155
  ```bash
153
- electrify <url> [options]
156
+ eweb <url> [options]
154
157
 
155
158
  Options:
156
159
  -n, --name App name
@@ -174,7 +177,7 @@ See [API.md](API.md) for full documentation.
174
177
  Automatically detect and use PWA manifest settings:
175
178
 
176
179
  ```bash
177
- electrify https://web.whatsapp.com --pwa
180
+ eweb https://web.whatsapp.com --pwa
178
181
  ```
179
182
 
180
183
  This will:
@@ -191,10 +194,10 @@ Enable automatic updates for your app:
191
194
 
192
195
  ```bash
193
196
  # GitHub releases
194
- electrify https://example.com --auto-update github:myorg/myrepo
197
+ eweb https://example.com --auto-update github:myorg/myrepo
195
198
 
196
199
  # Custom update server
197
- electrify https://example.com --auto-update https://updates.example.com
200
+ eweb https://example.com --auto-update https://updates.example.com
198
201
  ```
199
202
 
200
203
  ---
@@ -204,7 +207,7 @@ electrify https://example.com --auto-update https://updates.example.com
204
207
  Check your environment:
205
208
 
206
209
  ```bash
207
- electrify doctor
210
+ eweb doctor
208
211
  ```
209
212
 
210
213
  Output:
@@ -227,13 +230,13 @@ Output:
227
230
 
228
231
  | Command | Description |
229
232
  |---------|-------------|
230
- | `electrify <url>` | Build app from URL |
231
- | `electrify wizard` | Interactive setup |
232
- | `electrify init` | Generate config template |
233
- | `electrify build` | Build from config file |
234
- | `electrify presets` | List available presets |
235
- | `electrify doctor` | Check environment |
236
- | `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 |
237
240
 
238
241
  ---
239
242
 
@@ -301,7 +304,7 @@ npm test
301
304
 
302
305
  **🎉 Initial Release - Revival of Nativefier**
303
306
 
304
- - ✅ Interactive wizard (`electrify wizard`)
307
+ - ✅ Interactive wizard (`eweb wizard`)
305
308
  - ✅ Config file support (YAML/JSON)
306
309
  - ✅ 8 smart presets
307
310
  - ✅ Network icon URL support
@@ -54,17 +54,18 @@ HAVE_GRAPHICSMAGICK=
54
54
  HAVE_MAGICK=
55
55
  CONVERT=
56
56
 
57
+ type sips &>/dev/null && HAVE_SIPS=true
57
58
  type gm &>/dev/null && gm version | grep GraphicsMagick &>/dev/null && HAVE_GRAPHICSMAGICK=true && CONVERT="gm convert"
58
59
  type magick &>/dev/null && HAVE_MAGICK=true && CONVERT="magick"
59
60
  type convert &>/dev/null && [[ -z "$HAVE_MAGICK" ]] && HAVE_IMAGEMAGICK=true && CONVERT="convert"
60
- type sips &>/dev/null && HAVE_SIPS=true
61
61
 
62
- if [[ -n "$HAVE_MAGICK" || -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
63
66
  PNG_PATH="$(mktemp -d -t nativefier-iconset-XXXXXX)/icon.png"
64
67
  "${BASH_SOURCE%/*}/convertToPng" "${SOURCE}" "${PNG_PATH}"
65
68
  make_iconset_imagemagick "${PNG_PATH}" "${DEST}"
66
- elif [[ -n "$HAVE_SIPS" ]]; then
67
- make_iconset_sips "${SOURCE}" "${DEST}"
68
69
  else
69
70
  echo >&2 "Cannot find convert or sips executables"; exit 1;
70
71
  fi
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "nativefier",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "nativefier",
9
- "version": "1.0.2",
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.2",
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",