Skip to content

Commit 4be8198

Browse files
committed
Add build script and edit README.md to reflect this
1 parent 158482d commit 4be8198

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ Annotate building photos within the application itself.
6161
src="
6262
https://thumbs.gfycat.com/FarflungPastelKinglet-size_restricted.gif">
6363

64-
You can work on mutiple projects at once and even have multiple versions of the
65-
same project.
64+
The save and load feature lets you work on multiple projects at once and even
65+
have multiple versions of the same project.
6666

6767
### Exported report
6868
<img src="/docs/img/report.png">
@@ -85,14 +85,19 @@ Given by the client for the period August–September 2017
8585
> 4) Overall improvement of 85% on cycle time per report
8686
> 5) Easy summary of common defects
8787
> 6) Easy access to information for analysis and conclusion
88-
> 7) Report format easier for [professional engineer's] to do final review and
88+
> 7) Report format easier for [professional engineers] to do final review and
8989
> approval for submission.
9090
9191
## Getting started
9292

9393
### Windows
9494

95-
Download Inspector's Gadget from the [releases page](https://github.com/lieuzhenghong/inspectors-gadget/releases) and run `inspectors-gadget.exe`.
95+
Download Inspector's Gadget from the [releases
96+
page](https://github.com/lieuzhenghong/inspectors-gadget/releases) and run
97+
`inspectors-gadget.exe`.
98+
99+
To build for Windows (on Linux), download the latest [electron
100+
release](https://github.com/electron/electron/releases), rename it to `inspectors-gadget-win`, then run `build.sh`. Make sure to increment the version number in both `package.json` and `dist/package.json`.
96101

97102
### All other OSes
98103

build.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version_num=$(python - <<'EOF'
2+
import json
3+
jd = open("dist/package.json", "r")
4+
data = json.load(jd)
5+
print(data['version'])
6+
EOF
7+
)
8+
9+
dd=$
10+
cp ./inspectors-gadget-win ./inspectors-gadget-v$version_num-win/ -r
11+
cp ./dist ./app -r
12+
mv ./app ./inspectors-gadget-v$version_num-win/resources/
13+
zip ./inspectors-gadget-v$version_num-win.zip ./inspectors-gadget-v$version_num-win -r

0 commit comments

Comments
 (0)