Skip to content

Commit 1b0fad0

Browse files
authored
Merge pull request #21 from journeyapps/upgrade
Version 4.0.0 / SQLCipher 4.2.0 / SQLite 3.28.0
2 parents ead1555 + 25c8c91 commit 1b0fad0

42 files changed

Lines changed: 2525 additions & 608 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.circleci/config.yml

Lines changed: 75 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ aliases:
1515
working_directory: ~/repo
1616
steps:
1717
- checkout
18-
# Install git-lfs (not part of the standard Docker images)
19-
- run: curl -sSL https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash && sudo apt-get update && sudo apt-get install -y git-lfs && git-lfs install --force && git-lfs pull
18+
# Install git-lfs (not part of the standard Docker images)- run: sudo apt-get update
19+
- run: curl -sSL https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
20+
- run: sudo apt-get update && sudo apt-get install -y git-lfs && git-lfs install --force && git-lfs pull
2021
- run: npm install --build-from-source
2122

2223
- run: npm run test
@@ -25,14 +26,15 @@ aliases:
2526

2627
- &common-electron-linux
2728
docker:
28-
- image: circleci/node:10.5.0
29+
- image: circleci/node:10.16.0
2930

3031
working_directory: ~/repo
3132

3233
steps:
3334
- checkout
3435
# Install git-lfs (not part of the standard Docker images)
35-
- run: curl -sSL https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash && sudo apt-get update && sudo apt-get install -y git-lfs && git-lfs install --force && git-lfs pull
36+
- run: curl -sSL https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
37+
- run: sudo apt-get update && sudo apt-get install -y git-lfs && git-lfs install --force && git-lfs pull
3638
# These are required for electron(-mocha)
3739
- run: sudo apt-get install -y libgtk2.0-0 libgtk-3-dev libxtst6 libxss1 libgconf2-4 libnss3 libasound2
3840
- run: npm install --build-from-source
@@ -41,29 +43,35 @@ aliases:
4143
- run: xvfb-run ./node_modules/.bin/electron-mocha --timeout 480000
4244
- run: *publish-command
4345

44-
4546
- &common-macos
4647
macos:
47-
xcode: "9.1.0" # Node 8.9.0
48+
xcode: "10.2.1"
4849
steps:
4950
- checkout
5051
- run: |
5152
export HOMEBREW_NO_AUTO_UPDATE=1
52-
brew install git-lfs openssl || true
53+
brew install git-lfs openssl@1.1 || true
5354
- run: git lfs install
5455
- run: git lfs pull
55-
- restore_cache:
56-
keys:
57-
- v1-dependencies-macos-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
58-
# fallback to using the latest cache if no exact match is found
59-
- v1-dependencies-macos-{{ .Environment.CIRCLE_JOB }}
60-
61-
- run: npm install --build-from-source
56+
- run:
57+
name: Install Node
58+
command: |
59+
source ~/.bash_profile
60+
61+
# Install the correct Node version
62+
curl --silent -o node.tar.xz https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-darwin-x64.tar.xz
63+
tar xf node.tar.xz
64+
echo 'export NODE_PATH=$HOME/node' >> $BASH_ENV
65+
echo 'export PATH=$NODE_PATH/bin:$PATH' >> $BASH_ENV
66+
source $BASH_ENV
67+
mv node-v$NODE_VERSION-darwin-x64 $NODE_PATH
68+
node -v
6269
63-
- save_cache:
64-
paths:
65-
- node_modules
66-
key: v1-dependencies-macos-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
70+
- run:
71+
name: Install & Build
72+
command: |
73+
node -v
74+
npm install --build-from-source
6775
6876
- run: npm run test
6977
- run: ./node_modules/.bin/electron-rebuild
@@ -73,82 +81,89 @@ aliases:
7381

7482
version: 2
7583
jobs:
76-
build-10.5.0:
77-
<<: *common-build
78-
docker:
79-
- image: circleci/node:10.5.0
80-
81-
build-9.3.0:
84+
build-12.6.0:
8285
<<: *common-build
8386
docker:
84-
- image: circleci/node:9.3.0
87+
- image: circleci/node:12.6.0
8588

86-
build-8.9.3:
89+
build-10.16.0:
8790
<<: *common-build
8891
docker:
89-
- image: circleci/node:8.9.3
92+
- image: circleci/node:10.16.0
9093

91-
build-7.9.0:
94+
build-8.16.0:
9295
<<: *common-build
9396
docker:
94-
- image: circleci/node:7.9.0
97+
- image: circleci/node:8.16.0
9598

96-
build-electron-2.0.4:
99+
build-electron-5.0.6:
97100
<<: *common-electron-linux
98101
environment:
99-
PRE_GYP_ARGS: --runtime=electron --target=2.0.4 --disturl=https://atom.io/download/electron
102+
PRE_GYP_ARGS: --runtime=electron --target=5.0.6 --disturl=https://atom.io/download/electron
100103

101-
build-electron-1.8.6:
104+
build-electron-4.2.6:
102105
<<: *common-electron-linux
103106
environment:
104-
PRE_GYP_ARGS: --runtime=electron --target=1.8.6 --disturl=https://atom.io/download/electron
107+
PRE_GYP_ARGS: --runtime=electron --target=4.2.6 --disturl=https://atom.io/download/electron
105108

106-
build-electron-1.7.11:
109+
build-electron-3.1.11:
107110
<<: *common-electron-linux
108111
environment:
109-
PRE_GYP_ARGS: --runtime=electron --target=1.7.9 --disturl=https://atom.io/download/electron
112+
PRE_GYP_ARGS: --runtime=electron --target=3.1.11 --disturl=https://atom.io/download/electron
110113

114+
build-electron-2.0.18:
115+
<<: *common-electron-linux
116+
environment:
117+
PRE_GYP_ARGS: --runtime=electron --target=2.0.18 --disturl=https://atom.io/download/electron
111118

112-
build-macos-10.1.0:
119+
build-macos-12.6.0:
113120
<<: *common-macos
114-
macos:
115-
xcode: "9.3.1" # Node 10.3.0
121+
environment:
122+
NODE_VERSION: "12.6.0"
116123

117-
build-macos-8.9.0:
124+
build-macos-10.16.0:
118125
<<: *common-macos
119-
macos:
120-
xcode: "9.1.0" # Node 8.9.0
126+
environment:
127+
NODE_VERSION: "10.16.0"
121128

129+
build-macos-8.16.0:
130+
<<: *common-macos
131+
environment:
132+
NODE_VERSION: "8.16.0"
122133

123-
build-macos-electron-2.0.4:
134+
build-macos-electron-5.0.6:
124135
<<: *common-macos
125136
environment:
126-
PRE_GYP_ARGS: --runtime=electron --target=2.0.4 --disturl=https://atom.io/download/electron
137+
PRE_GYP_ARGS: --runtime=electron --target=5.0.6 --disturl=https://atom.io/download/electron
138+
NODE_VERSION: "10.16.0"
127139

128-
build-macos-electron-1.8.6:
140+
build-macos-electron-4.2.6:
129141
<<: *common-macos
130142
environment:
131-
PRE_GYP_ARGS: --runtime=electron --target=1.8.6 --disturl=https://atom.io/download/electron
143+
PRE_GYP_ARGS: --runtime=electron --target=4.2.6 --disturl=https://atom.io/download/electron
144+
NODE_VERSION: "10.16.0"
132145

133-
build-macos-electron-1.7.11:
146+
build-macos-electron-3.1.11:
134147
<<: *common-macos
135148
environment:
136-
PRE_GYP_ARGS: --runtime=electron --target=1.7.11 --disturl=https://atom.io/download/electron
149+
PRE_GYP_ARGS: --runtime=electron --target=3.1.11 --disturl=https://atom.io/download/electron
150+
NODE_VERSION: "10.16.0"
137151

138152
workflows:
139153
version: 2
140154
build_all:
141155
jobs:
142-
- build-10.5.0
143-
- build-9.3.0
144-
- build-8.9.3
145-
- build-7.9.0
146-
- build-electron-2.0.4
147-
- build-electron-1.8.6
148-
- build-electron-1.7.11
149-
# Not working currently
150-
# - build-macos-10.1.0
151-
- build-macos-8.9.0
152-
- build-macos-electron-2.0.4
153-
- build-macos-electron-1.8.6
154-
- build-macos-electron-1.7.11
156+
- build-12.6.0
157+
- build-10.16.0
158+
- build-8.16.0
159+
- build-electron-5.0.6
160+
- build-electron-4.2.6
161+
- build-electron-3.1.11
162+
- build-electron-2.0.18
163+
- build-electron-5.0.6
164+
- build-macos-12.6.0
165+
- build-macos-10.16.0
166+
- build-macos-8.16.0
167+
- build-macos-electron-5.0.6
168+
- build-macos-electron-4.2.6
169+
- build-macos-electron-3.1.11

.dockerignore

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#.dockerignore
2+
*~
3+
Dockerfile
4+
.git/
5+
6+
#.gitignore
7+
*.dylib
8+
*.so
9+
*.o
10+
*.lo
11+
*.Makefile
12+
*.target.gyp.mk
13+
lib/binding
14+
build
15+
out
16+
Release
17+
Debug
18+
node_modules
19+
.deps
20+
Makefile.gyp
21+
gyp-mac-tool
22+
.dirstamp
23+
npm-debug.log
24+
test/support/big.db
25+
test/tmp
26+
test/nw/app.nw
27+
.DS_Store
28+
.idea
29+
.dtps
30+
local.env
31+
.mason
32+
.eslintrc.js
33+
setup.sh

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ setup.sh
1818
bin
1919
.circleci
2020
*.tgz
21+
cloudformation/ci.template.js
22+
appveyor.yml
23+
.vscode

0 commit comments

Comments
 (0)