Skip to content

Commit

Permalink
PR Review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
artoonie committed Jun 14, 2024
1 parent 6e60ea5 commit 756a9b5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/sha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ if [ $os == 'Windows' ]; then
echo $(certutil -hashfile $filename SHA$sha_a | sed -n 2p)
elif [ $os == 'Linux' ]; then
echo $(sha${sha_a}sum $filename | cut -f1 -d" ")
else
elif [ $os == 'macOS' ]; then
echo $(shasum -a $sha_a $filename | cut -f1 -d" ")
else
echo "Unsupported OS"
return -1
fi

19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,16 @@ On Linux, you may install the .deb file, then run `/opt/rcv/bin/RCTab` to launch

#### Method 3 (Least Easy): Building on an Air-Gapped Machine

1. Download Gradle from https://gradle.org/releases/ and place it in your path
1. Download Gradle from https://gradle.org/releases/ and place it in your path.
2. Download and extract the source code from
the [releases page](https://github.com/BrightSpots/rcv/releases)
3. Download the appropriate cache files for your OS: cache.[OS].zip
4. Stop the Gradle daemon with `gradle --stop`
5. Delete the directory ~/.gradle/caches if it exists
6. Extract the appropriate caches/[filename].zip to ~/.gradle/caches so that the "caches" directory is in ~/.gradle
7. In the extracted directory, you may manually verify each dependency using checksums.csv in accordance with your own policies
8. Run `gradle assemble --offline` and ensure you get no errors
9. Run `gradle run --offline` to launch RCTab
10. Run `gradle jpackage --offline` to generate a jpackage package
the [releases page](https://github.com/BrightSpots/rcv/releases).
3. Alongside the release you just downloaded, you will find corresponding cache files (cache.[OS].zip). Download this file too.
4. Stop the Gradle daemon with `gradle --stop`.
5. Delete the directory ~/.gradle/caches if it exists.
6. Extract the appropriate caches/[filename].zip to ~/.gradle/caches so that the "caches" directory is in ~/.gradle.
7. Alongside these extracted caches is a file named checksums.csv. In the extracted directory, you may manually verify each dependency using checksums.csv in accordance with your own policies.
8. Run `gradle assemble --offline` and ensure you get no errors.
9. Run `gradle run --offline` to launch RCTab, or `gradle jpackage --offline` to generate an executable file specific to the OS you are using (a .dmg, .exe, or .deb).

#### Encrypting the Tabulator Directory
For security purposes, we **strongly recommend** applying password encryption (e.g. 256-bit SHA) to the directory containing the Tabulator, config files, CVR files, and any other related files.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies {
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.15.2'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.15.2'
implementation "com.github.spotbugs:spotbugs:4.8.3"
implementation "com.github.spotbugs:spotbugs:4.7.3"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.3'
}
Expand Down

0 comments on commit 756a9b5

Please sign in to comment.