Skip to content

Commit f547082

Browse files
committed
Proper two package.json format, release.sh bumps 2nd json ver too
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 9e2324f commit f547082

3 files changed

Lines changed: 26 additions & 7 deletions

File tree

‎electron/package.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
2-
"description": "Electron main process dependencies",
2+
"name": "riot-web",
3+
"main": "src/electron-main.js",
4+
"version": "0.0.0",
5+
"description": "A feature-rich client for Matrix.org",
6+
"author": "Vector Creations Ltd.",
37
"dependencies": {
48
"electron-window-state": "^4.1.0"
59
}

‎package.json‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,12 @@
146146
"dereference": true,
147147
"//files": "We bundle everything, so we only need to include webapp/",
148148
"files": [
149-
"electron/node_modules/**",
150-
"electron/src/**",
151-
"electron/img/**",
152-
"webapp/**",
153-
"package.json"
149+
"node_modules/**",
150+
"src/**",
151+
"img/**"
152+
],
153+
"extraResources": [
154+
"webapp/**/*"
154155
],
155156
"linux": {
156157
"target": "deb",
@@ -164,7 +165,8 @@
164165
},
165166
"directories": {
166167
"buildResources": "electron/build",
167-
"output": "electron/dist"
168+
"output": "electron/dist",
169+
"app": "electron"
168170
}
169171
}
170172
}

‎release.sh‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,17 @@ set -e
99

1010
cd `dirname $0`
1111

12+
13+
# bump Electron's package.json first
14+
release="${1#v}"
15+
tag="v${release}"
16+
echo "electron npm version"
17+
18+
cd electron
19+
npm version --no-git-tag-version "$release"
20+
git commit package.json -m "$tag"
21+
22+
23+
cd ..
24+
1225
exec ./node_modules/matrix-js-sdk/release.sh -z "$@"

0 commit comments

Comments
 (0)