electrify-web 1.0.0 → 1.0.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
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
[](https://opensource.org/licenses/MIT)
|
|
12
12
|
[](https://nodejs.org)
|
|
13
13
|
|
|
14
|
-
<img src=".github/demo.gif" alt="Demo" width="600">
|
|
15
|
-
|
|
16
14
|
</div>
|
|
17
15
|
|
|
18
16
|
---
|
|
@@ -299,7 +297,7 @@ npm test
|
|
|
299
297
|
|
|
300
298
|
## 📋 Changelog
|
|
301
299
|
|
|
302
|
-
### v1.0.0 (
|
|
300
|
+
### v1.0.0 (2025-12)
|
|
303
301
|
|
|
304
302
|
**🎉 Initial Release - Revival of Nativefier**
|
|
305
303
|
|
|
@@ -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
|
|
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
|
|
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
|
|
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,13 +51,15 @@ fi
|
|
|
51
51
|
HAVE_IMAGEMAGICK=
|
|
52
52
|
HAVE_SIPS=
|
|
53
53
|
HAVE_GRAPHICSMAGICK=
|
|
54
|
+
HAVE_MAGICK=
|
|
54
55
|
CONVERT=
|
|
55
56
|
|
|
56
57
|
type gm &>/dev/null && gm version | grep GraphicsMagick &>/dev/null && HAVE_GRAPHICSMAGICK=true && CONVERT="gm convert"
|
|
57
|
-
type
|
|
58
|
+
type magick &>/dev/null && HAVE_MAGICK=true && CONVERT="magick"
|
|
59
|
+
type convert &>/dev/null && [[ -z "$HAVE_MAGICK" ]] && HAVE_IMAGEMAGICK=true && CONVERT="convert"
|
|
58
60
|
type sips &>/dev/null && HAVE_SIPS=true
|
|
59
61
|
|
|
60
|
-
if [[ -n "$HAVE_IMAGEMAGICK" || -n "$HAVE_GRAPHICSMAGICK" ]]; then
|
|
62
|
+
if [[ -n "$HAVE_MAGICK" || -n "$HAVE_IMAGEMAGICK" || -n "$HAVE_GRAPHICSMAGICK" ]]; then
|
|
61
63
|
PNG_PATH="$(mktemp -d -t nativefier-iconset-XXXXXX)/icon.png"
|
|
62
64
|
"${BASH_SOURCE%/*}/convertToPng" "${SOURCE}" "${PNG_PATH}"
|
|
63
65
|
make_iconset_imagemagick "${PNG_PATH}" "${DEST}"
|
|
@@ -10,21 +10,23 @@ set -e
|
|
|
10
10
|
|
|
11
11
|
HAVE_IMAGEMAGICK=
|
|
12
12
|
HAVE_GRAPHICSMAGICK=
|
|
13
|
+
HAVE_MAGICK=
|
|
13
14
|
|
|
14
|
-
type
|
|
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
|
-
|
|
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 [[ -
|
|
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"
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nativefier",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "nativefier",
|
|
9
|
-
"version": "
|
|
9
|
+
"version": "1.0.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@electron/asar": "^3.2.4",
|