Skip to content

Commit 806f47b

Browse files
committed
v2.1.0
1 parent 4995e07 commit 806f47b

18 files changed

+64
-65
lines changed

README.md

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,57 @@
22

33
# Jacksum File Browser Integration on macOS
44

5-
## Abstract
5+
<img alt="Jacksum_3.7.0_Finder_Integration" src="docs/images/Jacksum_3.7.0_Finder_Integration.png" >
66

7-
Allows macOS users to calculate hash values of their files and folders in Finder, just by selecting the algorithm of choice from the script menu. The Finder integration is **powered by Jacksum** which provides **470 algorithms**.
7+
## Abstract
88

9-
See also [https://jacksum.net](https://jacksum.net) and [https://github.com/jonelo/jacksum](https://github.com/jonelo/jacksum)
9+
Allows macOS users to calculate hash values of their files and folders in Finder,
10+
just by selecting the algorithm of choice from the script menu.
11+
The Finder integration is powered both
12+
**[Jacksum](https://github.com/jonelo/jacksum)** (the engine) and
13+
**[HashGarten](https://github.com/jonelo/HashGarten)** (the GUI).
1014

15+
See also [https://jacksum.net](https://jacksum.net).
1116

1217
## System Requirements
1318

14-
- OS X 10.8 (Mountain Lion) or later, tested up to macOS 12.2 (Ventura)
19+
- OS X 10.8 (Mountain Lion) or later, tested up to macOS 14.4.1 (Sonoma)
1520
- Finder
1621
- JDK 11 or later, see also [https://adoptium.net](https://adoptium.net)
17-
- 2 MiB disk space for Jacksum
18-
- 4 MiB disk space for all .scpt files
22+
- 2 MiB disk space for Jacksum and HashGarten
1923

2024
## Quick Start
2125

2226
### How to install it
2327

24-
- Download and install a Java Development Kit (JDK), go to [https://adoptium.net](https://adoptium.net)
25-
- Activate the Apple Script Menu, see also [https://support.apple.com/en-tm/guide/script-editor/scpedt27975/mac](https://support.apple.com/en-tm/guide/script-editor/scpedt27975/mac)
26-
- Download and open the [.dmg](https://github.com/jonelo/jacksum-fbi-macos/releases/latest), and double click on the .app
28+
#### Download and install a Java Development Kit (JDK)
29+
30+
Go to [https://adoptium.net](https://adoptium.net)
31+
32+
#### Activate the Apple Script Menu
33+
34+
See also [https://support.apple.com/en-us/guide/script-editor/scpedt27975/mac](https://support.apple.com/en-us/guide/script-editor/scpedt27975/mac)
35+
36+
<img height="462" alt="Apple Script Menu activated" src="docs/images/AppleScriptMenuActivated.png">
2737

28-
<p align="center">
29-
<img src="docs/images/Jacksum 3.0.0 FBI on macOS during installation.png" width="629" alt="Jacksum 3.0.0 FBI on macOS during installation">
30-
</p>
38+
#### Download and open the .dmg
3139

40+
Download and open the [.dmg](https://github.com/jonelo/jacksum-fbi-macos/releases/latest),
41+
42+
#### Open on the .app
43+
44+
<img alt="Open the Jacksum Finder Integration app" src="docs/images/JacksumFinderIntegrationOpen.png">
3245

3346
### How to use it
3447

3548
#### Using Finder and the script menu
3649

37-
Go to Finder, select files and folders and choose an algorithm from the script folder called "Jacksum 3.5.0" in order to calculate checksums, CRCs and hash values of the selected files.
50+
Go to Finder, select files and folders and choose an action from the script folder called "Jacksum 3.7.0"
51+
pass those paths to HashGarten where you can calculate checksums, CRCs and hash values of the selected files.
52+
53+
<img height="353" alt="Jacksum at the Script Menu" src="docs/images/JacksumAtTheScriptMenu.png">
3854

39-
<p align="center">
40-
<img src="docs/images/Jacksum 3.0.0 at the script menu.png" width="413" alt="Jacksum 3.0.0 at the script menu">
41-
</p>
55+
From here [HashGarten](https://github.com/jonelo/HashGarten) takes over.
4256

4357
#### Using the command line interface
4458

@@ -48,14 +62,14 @@ Open a Terminal, and use all features that Jacksum provides.
4862
$ /Applications/Jacksum/jacksum
4963
```
5064

51-
### How to configure it
65+
For more information see also [Jacksum](https://github.com/jonelo/jacksum)
5266

53-
#### Limit the number of algorithms
67+
### How to configure it
5468

5569
Open Finder, hit ⇧⌘G, enter the path to the Finder scripts folder `~/Library/Scripts/Applications/Finder`, and click on the Go button.
56-
Click on `Jacksum 3.5.0`, and remove any .scpt file that you don't wanna see.
70+
Click on `Jacksum 3.7.0`, and remove any .scpt file that you do not want to see.
5771

58-
#### Recreate all algorithms
72+
### How to recreate all items again
5973

6074
Just run the .app again.
6175

@@ -96,10 +110,10 @@ Open a terminal and run
96110
That will build the .app and wrap it in a .dmg. You find both the .app and the .dmg in the folder called ./output/.
97111

98112
```
99-
open ./ouutput/*.dmg
113+
open ./output/*.dmg
100114
```
101115

102116
### How does that all work?
103117

104-
The core of the .app is bash script that installs Jacksum's primary features to macOS Finder's Script Menu by creating applescript scripts and compiling those on the system during the installation.
118+
The core of the .app is bash script that installs calls to HashGarten and Jacksum to macOS Finder's Script Menu by creating applescript scripts and compiling those on the system during the installation.
105119

317 KB
Loading
Binary file not shown.
-342 KB
Binary file not shown.
650 KB
Loading
105 KB
Loading
Loading

resources/app/HashGarten-0.14.0.jar

-85.3 KB
Binary file not shown.

resources/app/HashGarten-0.16.0.jar

119 KB
Binary file not shown.

resources/app/flatlaf-3.2.jar

-796 KB
Binary file not shown.

resources/app/flatlaf-3.4.1.jar

863 KB
Binary file not shown.

resources/app/install.command

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
#
33
# Jacksum File Browser Integration for macOS
4-
# Copyright (c) 2010-2023 Dipl.-Inf. (FH) Johann N. Loefflmann
4+
# Copyright (c) 2010-2024 Dipl.-Inf. (FH) Johann N. Loefflmann
55
#
66
# This program is free software; you can redistribute it and/or modify
77
# it under the terms of the GNU General Public License as published by
@@ -75,7 +75,7 @@ else
7575
fi
7676
mkdir -p "$SCRIPTS"
7777
#ALGORITHMS="$(/Applications/Jacksum/jacksum -a all --list)"
78-
COMMANDS="cmd_calc;1)_Calc_hash_values cmd_check;2)_Check_data_integrity cmd_cust;3)_Customized_output cmd_edit;4)_Edit_script cmd_help;5)_Help"
78+
COMMANDS="cmd_calc;1)_Calc_hash_values cmd_check;2)_Check_data_integrity cmd_cust;3)_Customized_output cmd_edit;4)_Edit_script"
7979

8080
TOTALCOUNT=$(echo "$COMMANDS" | wc -l)
8181
FINISHED=0
@@ -122,14 +122,18 @@ done
122122

123123
cat << EOL
124124
125-
Jacksum has been integrated into the Finder's script menu.
125+
Jacksum and HashGarten have been integrated
126+
into the Finder's script menu.
126127
127-
Make sure that you have activated the Apple Script Menu. Starting with
128-
Mac OS X 10.6 (Snow Leopard), the Script Menu preferences are at the Apple
129-
Script-Editor's preferences, in the General tab.
128+
Make sure that you have activated the Apple
129+
Script Menu. Starting with Mac OS X 10.6
130+
(Snow Leopard), the Script Menu preferences
131+
are at the Apple Script-Editor's preferences,
132+
in the General tab.
130133
131-
Go to Finder, select one or more files and directories and choose an entry
132-
from the script directory called Jacksum.
134+
Go to Finder, select files and directories and
135+
choose an entry from the script directory
136+
called "Jacksum 3.7.0".
133137
134138
Done.
135139
EOL

resources/app/jacksum-3.7.0.jar

-35 Bytes
Binary file not shown.

resources/app/jacksum.sh

100644100755
Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
#
33
# Jacksum File Browser Integration Script, https://jacksum.net
4-
# Copyright (c) 2006-2023 Johann N. Loefflmann, https://johann.loefflmann.net
4+
# Copyright (c) 2006-2024 Johann N. Loefflmann, https://johann.loefflmann.net
55
# Code has been released under the conditions of the GPLv3+.
66
#
77

@@ -15,7 +15,7 @@ ERROR_LOG="/tmp/jacksum-error.txt"
1515
CHECK_FILE="/tmp/jacksum-check.txt"
1616
JAVA="java"
1717
JACKSUM_JAR="/Applications/Jacksum/jacksum-3.7.0.jar"
18-
HASHGARTEN_JAR="/Applications/Jacksum/HashGarten-0.14.0.jar"
18+
HASHGARTEN_JAR="/Applications/Jacksum/HashGarten-0.16.0.jar"
1919
SCRIPT="/Applications/Jacksum/jacksum.sh"
2020

2121
cat /dev/null > "$FILE_LIST"
@@ -44,35 +44,13 @@ case $ALGO in
4444

4545
"cmd_calc")
4646
"${JAVA}" -jar "${HASHGARTEN_JAR}" --header -O relative -U ${ERROR_LOG} --file-list-format list --file-list ${FILE_LIST} --path-relative-to-entry 1 --verbose default,summary
47-
rm relative > /dev/null 2>&1
48-
if [ $? -eq 0 ]
49-
then
50-
# Generate an output that contains both stdout and stderr in a file for the viewer
51-
# CHECK_FILE contains the output file name that the user has been specified at the GUI
52-
53-
CHECK_FILE=$(grep gui.output $HOME/.HashGarten.properties)
54-
# We need to strip the key called gui.output= and undo any escapes done by Java''s properties API
55-
CHECK_FILE=${CHECK_FILE#*=}
56-
57-
cat ${CHECK_FILE} ${ERROR_LOG} > ${OUTPUT}
58-
viewer "${OUTPUT}"
59-
fi
6047
;;
6148

6249
"cmd_check")
63-
if [ ! -f relative ]; then
64-
touch relative
65-
fi
6650
"${JAVA}" -jar "${HASHGARTEN_JAR}" --header -c relative -O ${OUTPUT} -U ${OUTPUT} --file-list-format list --file-list ${FILE_LIST} --path-relative-to-entry 1 --verbose default,summary
67-
rm relative > /dev/null 2>&1
68-
if [ $? -eq 0 ]; then
69-
viewer "${OUTPUT}"
70-
fi
7151
;;
7252

73-
7453
"cmd_cust")
75-
cat /dev/null > "${OUTPUT}"
7654
ALGOS="md5+sha1+ripemd160+tiger+\
7755
sha256+sha512/256+sha3-256+shake128+ascon-hash+sm3+streebog256+kupyna-256+lsh-256-256+blake3+k12+keccak256+\
7856
sha512+sha3-512+shake256+streebog512+kupyna-512+lsh-512-512+blake2b-512+keccak512+m14+skein-512-512+whirlpool"
@@ -140,4 +118,3 @@ legacy message digests (avoid if possible):
140118
;;
141119

142120
esac
143-

resources/dmg/readme.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ For more information about Jacksum please go to https://jacksum.net
99
How do I install the "Jacksum Finder Integration"?
1010
--------------------------------------------------
1111
In order to install Jacksum's primary features to Finder,
12-
just double-click on the icon to run the installer.
12+
and open the app to run the installer.
1313

1414
The installer requires Mac OS X 10.11 (El Capitan) or later.
15-
It has been tested up to macOS 13.2 (Ventura).
15+
It has been tested up to macOS 14.4.1 (Sonoma).
1616

1717
The first time you do run the installer you may need to override
1818
your GateKeeper settings. See also https://support.apple.com/en-us/HT202491
@@ -38,12 +38,11 @@ a great app to wrap scripts into an app, see also https://sveinbjorn.org/platypu
3838
How to calculate a CRC/checksum/hash value using Jacksum?
3939
---------------------------------------------------------
4040
After you have installed Jacksum by the Jacksum Finder Integration, you can
41-
go to Finder, select one or more files, one or more folders and choose an
42-
algorithm from the script folder called Jacksum in order to calculate checksums
43-
for the files.
41+
go to Finder, select files and folders and choose an entry from the script
42+
folder called Jacksum in order to calculate checksums for the files.
4443

4544
Alternatively, you can also do it on the commandline. Jacksum is installed in
46-
/Applications/Jacksum by the installer and you can call jacksum on the command
45+
/Applications/Jacksum by the installer, and you can call jacksum on the command
4746
line by typing
4847

4948
$ /Applications/Jacksum/jacksum
@@ -55,7 +54,7 @@ Jacksum and HashGarten require Java to run, so you have to install a JDK.
5554
You can get it for free for example at https://adoptium.net (recommended)
5655
or http://jdk.java.net/
5756

58-
Also please make sure that you have activated the Apple Script Menu.
57+
Also, please make sure that you have activated the Apple Script Menu.
5958
The Script Menu preferences are at the Apple Script-Editor's preferences,
6059
in the General tab.
6160

resources/dmg/release_notes.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Release Notes
22
-------------
3+
2.1.0, Apr 6, 2024
4+
- bundled Jacksum 3.7.0, and HashGarten 0.16.0
5+
- removed the Help menu under the Jacksum script directory, because the GUI provides
6+
Help from now on.
7+
38
2.0.0, Sep 17, 2023
49
- bundled Jacksum 3.7.0, and HashGarten 0.14.0
510
- files/directories are passed from Finder to HashGarten (which is a graphical user

resources/make_all.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
APP_VERSION=3.7.0
2-
DMG_VERSION=2.0.0
2+
DMG_VERSION=2.1.0

resources/make_app.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ APP_AUTHOR="Johann N. Löfflmann"
44
APP_BUNDLE_ID=net.loefflmann.johann.JacksumFinderIntegration
55
APP_LICENSE_FILE=license.txt
66
APP_JAR_FILE="jacksum-${APP_VERSION}.jar"
7-
APP_JAR_FILE_HASHGARTEN="HashGarten-0.14.0.jar"
8-
APP_JAR_FILE_FLATLAF="flatlaf-3.2.jar"
7+
APP_JAR_FILE_HASHGARTEN="HashGarten-0.16.0.jar"
8+
APP_JAR_FILE_FLATLAF="flatlaf-3.4.1.jar"

0 commit comments

Comments
 (0)