Skip to content

Commit 873822c

Browse files
authored
Merge pull request #98 from nexB/74-update-README-to-document-import-export-save-open
Update README to document JSON-import process #74
2 parents 8020d16 + 3d9e53c commit 873822c

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
AboutCode Manager provides an advanced visual UI to help you quickly evaluate
44
license and other notices identified by [ScanCode](https://github.com/nexB/scancode-toolkit/) and record your conclusion
55
about the effective license(s) for a component. AboutCode Manager is based on
6-
Electron and will be the primary desktop/GUI tool for using nexB’s AboutCode
7-
tools. This app works on Windows, OS X and Linux operating systems.
6+
[Electron](https://electron.atom.io/) and will be the primary desktop/GUI tool for using nexB’s [AboutCode
7+
tools](https://github.com/nexB/aboutcode). This app works on Windows, OS X and Linux operating systems.
88

9-
The ScanCode toolkit detects licenses, copyrights and other interesting
10-
information in your code. The AboutCode Manager allows you take the scan results
11-
from the ScanCode Toolkit and create components. By creating these components
12-
within in your codebase, you are creating a software inventory of your product.
9+
As detailed in the [ScanCode README](https://github.com/nexB/scancode-toolkit/), ScanCode detects licenses, copyrights and other interesting information in your code and enables you to format the scan results as JSON or HTML. AboutCode Manager allows you to take the JSON-formatted scan results (HTML-formatted scans are not supported)
10+
from ScanCode and create components. By creating these components
11+
within your codebase, you are creating a software inventory of your product.
1312
The conclusions (Concluded License, Concluded Owner, etc.) you make when
1413
creating your component can then be exported to a JSON file.
1514

@@ -19,20 +18,20 @@ creating your component can then be exported to a JSON file.
1918

2019
* You can [download the latest release](https://github.com/nexB/aboutcode-manager/releases) for your operating system or build it yourself (see below).
2120
Once downloaded, you can find `AboutCode-Manager` under `dist/AboutCode-Manager-<os>-x64-<version>`.
22-
* AboutCode Manager v1 is only compatible with scans from [ScanCode Toolkit v2.0.0-RC1](https://github.com/nexB/scancode-toolkit/releases) and above which are run with the ScanCode -i option. You need to run ScanCode with the -c (copyright detection) and -l (license detection) options in order to get copyright and license data. The -p option will detect and report package level metadata if available.
21+
* AboutCode Manager v2 is only compatible with scans from [ScanCode Toolkit v2.0.0-RC1](https://github.com/nexB/scancode-toolkit/releases) and above which are run with the ScanCode -i option. You need to run ScanCode with the -c (copyright detection) and -l (license detection) options in order to get copyright and license data. The -p option will detect and report package-level metadata if available.
2322

2423
```bash
25-
./scancode -clip <input> <output_file>
24+
./scancode -clipeu <input> <output_file>
2625
```
2726

28-
* We have provided a set of sample scans that you can quickly review in AboutCode Manager in order to get a sense of its functionality and the types of information captured by a scan. The samples are located at [https://github.com/nexB/aboutcode-manager/tree/develop/samples](https://github.com/nexB/aboutcode-manager/tree/develop/samples). They currently include the following JSON files:
29-
* batik-1.7.1-scan.json
30-
* busybox-1.26.2-scan.json
31-
* dropbear-2016.74-scan.json
32-
* mysql-connector-java-5.1.40-scan.json
33-
* openssl-1.1.0e-scan.json
27+
* We have provided a set of sample scans that you can quickly review in AboutCode Manager in order to get a sense of its functionality and the types of information captured by a scan. The samples are located at [https://github.com/nexB/aboutcode-manager/tree/develop/samples](https://github.com/nexB/aboutcode-manager/tree/develop/samples).
3428

35-
Download one or more of the samples and open the samples from the File open button in AboutCode Manager.
29+
* To import a ScanCode JSON file:
30+
* Open the `File` menu and select `Import JSON File` (keyboard shortcut: <kbd>Ctrl+I</kbd> or <kbd>&#8984;+I</kbd>).
31+
* In the dialog window that opens, navigate to the JSON file you want to import, select the file and click `Open`.
32+
* You will then be prompted to choose a filename and location to save the JSON file as a SQLite database file. Add a filename, select the folder in which you want to save the SQLite database file, and click `Save`.
33+
* AboutCode Manager will then create a SQLite database file from your JSON file, indicated by the status message "Creating Database ..."
34+
* Once the process has finished, the status message will be replaced by an expandable tree displaying the root node of your SQLite database file and, to the right of the tree, a table displaying the root node attributes generated by ScanCode.
3635

3736
See the [wiki](https://github.com/nexB/aboutcode-manager/wiki) for more documentation on how to use AboutCode Manager.
3837

@@ -44,12 +43,17 @@ Then, from your command line:
4443
```bash
4544
# Clone this repository
4645
git clone https://github.com/nexB/aboutcode-manager.git
46+
4747
# Go into the repository
4848
cd aboutcode-manager
49+
4950
# Install dependencies and run the app
5051
npm install
51-
# Rebuilds native Node.js modules against the version of Node.js that the app is using
52-
./node_modules/.bin/electron-rebuild
52+
53+
# Rebuild native Node.js modules against the version of Node.js that the app is using
54+
./node_modules/.bin/electron-rebuild (MacOS, Linux and Git Bash on Windows)
55+
.\node_modules\.bin\electron-rebuild.cmd (Windows except for Git Bash)
56+
5357
# Run the app
5458
npm start
5559
```
@@ -65,6 +69,8 @@ $ ./build.sh
6569
After building is done, you can find `AboutCode-Manager` under `dist/AboutCode-Manager-<os>-x64-<version>`.
6670
Archives (tar.gz and .zip) are also built.
6771

72+
Note: A build for any of the three target platforms (Darwin/MacOS, Linux and Windows) must be executed on the targeted platform.
73+
6874
## Testing
6975

7076
Test functionality using:

0 commit comments

Comments
 (0)