Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit a95938e

Browse files
committed
Release v0.4.0
1 parent 69d5fb4 commit a95938e

File tree

3 files changed

+43
-4
lines changed

3 files changed

+43
-4
lines changed

RELEASING.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Releasing Cryptr
2+
3+
The script `npm run dist` is provided which should take care of most of the release needs. However, there are issues, depending on what platform you are releasing from.
4+
5+
#### For Mac
6+
7+
When running on Mac OS Catalina, modify `package.json` to be
8+
```
9+
"dist": "electron-builder -m --x64"
10+
```
11+
12+
and run `npm run dist`. This will only build the release for Mac OS.
13+
14+
15+
#### Linux and Windows
16+
17+
Follow the guide at https://www.electron.build/multi-platform-build#build-electron-app-using-docker-on-a-local-machine to release using Docker on a Mac.
18+
19+
TL;DR:
20+
Modify `package.json` to be
21+
```
22+
"dist": "electron-builder -wl --x64"
23+
```
24+
then
25+
```
26+
$ docker run --rm -ti \
27+
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_BRANCH|TRAVIS_PULL_REQUEST_|APPVEYOR_|CSC_|GH_|GITHUB_|BT_|AWS_|STRIP|BUILD_') \
28+
--env ELECTRON_CACHE="/root/.cache/electron" \
29+
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
30+
-v ${PWD}:/project \
31+
-v ${PWD##*/}-node-modules:/project/node_modules \
32+
-v ~/.cache/electron:/root/.cache/electron \
33+
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
34+
electronuserland/builder:wine
35+
36+
$ yarn dist
37+
```
38+
39+
This will build releases for Linux and Windows.

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cryptr",
33
"author": "Jacob Crowther <crowther@adobe.com>",
4-
"version": "0.3.0",
4+
"version": "0.4.0",
55
"description": "A GUI for Vault",
66
"repository": {
77
"url": "https://github.com/jcrowthe/cryptr.git"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cryptr",
33
"author": "Jacob Crowther <crowther@adobe.com>",
4-
"version": "0.3.0",
4+
"version": "0.4.0",
55
"description": "A GUI for Vault",
66
"main": "app/index.js",
77
"repository": {
@@ -13,14 +13,14 @@
1313
"start": "electron ./app",
1414
"dev": "cross-env CRYPTR_ENV='development' npm run start",
1515
"test": "./node_modules/mocha/bin/mocha",
16-
"release": "build -mwl --x64 --ia32"
16+
"dist": "electron-builder -wl --x64"
1717
},
1818
"devDependencies": {
1919
"chai": "^3.5.0",
2020
"chai-as-promised": "^5.3.0",
2121
"cross-env": "^5.2.1",
2222
"electron": "^4.2.12",
23-
"electron-builder": "^20.44.4",
23+
"electron-builder": "^22.3.2",
2424
"electron-prebuilt": "^1.4.13",
2525
"mocha": "^5.2.0"
2626
},

0 commit comments

Comments
 (0)