Skip to content

Commit 9cef1a5

Browse files
committed
[DDW-596] Fix Linux and Darwin builds
1 parent 8328898 commit 9cef1a5

File tree

8 files changed

+59
-46
lines changed

8 files changed

+59
-46
lines changed

.buildkite/pipeline.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
env:
22
ARTIFACT_BUCKET: s3://ci-output-sink
33
steps:
4-
# - label: 'daedalus-x86_64-darwin'
5-
# command: 'scripts/build-installer-unix.sh --build-id $BUILDKITE_BUILD_NUMBER'
6-
# env:
7-
# NIX_SSL_CERT_FILE: /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
8-
# agents:
9-
# queue: daedalus
10-
# system: x86_64-darwin
4+
- label: 'daedalus-x86_64-darwin'
5+
command: 'scripts/build-installer-unix.sh --build-id $BUILDKITE_BUILD_NUMBER'
6+
env:
7+
NIX_SSL_CERT_FILE: /nix/var/nix/profiles/default/etc/ssl/certs/ca-bundle.crt
8+
agents:
9+
queue: daedalus
10+
system: x86_64-darwin
1111
- label: 'daedalus-x86_64-linux-nix'
1212
command: 'scripts/build-installer-nix.sh $BUILDKITE_BUILD_NUMBER'
1313
agents:
1414
system: x86_64-linux
15-
# - label: 'daedalus-x86_64-windows-nix'
16-
# command: 'scripts/build-cross-windows.sh $BUILDKITE_BUILD_NUMBER'
17-
# agents:
18-
# system: x86_64-linux
15+
- label: 'daedalus-x86_64-windows-nix'
16+
command: 'scripts/build-cross-windows.sh $BUILDKITE_BUILD_NUMBER'
17+
agents:
18+
system: x86_64-linux
1919

2020
# TODO: Re-enable once script is fixed
2121
# - label: 'release.nix'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ installers/config.yaml
4747
installers/icons/electron.icns
4848
installers/installer-config.json
4949
installers/topology.yaml
50+
installers/csl-daedalus/
51+
installers/delegation.cert
52+
installers/signing.key
5053

5154
# temporary certs for daedalus dev
5255
tls/client

installers/common/MacInstaller.hs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,33 @@ buildElectronApp darwinConfig@DarwinConfig{dcAppName, dcAppNameApp} installerCon
282282
, "util-deprecate"
283283
, "varuint-bitcoin"
284284
, "wif"
285+
, "usb-detection"
286+
, "babel-runtime"
287+
, "bindings"
288+
, "brotli"
289+
, "buffer"
290+
, "clone"
291+
, "deep-equal"
292+
, "dfa"
293+
, "eventemitter2"
294+
, "file-uri-to-path"
295+
, "fontkit"
296+
, "functions-have-names"
297+
, "has-property-descriptors"
298+
, "has-tostringtag"
299+
, "is-arguments"
300+
, "is-date-object"
301+
, "is-regex"
302+
, "linebreak"
303+
, "node-hid"
304+
, "object-is"
305+
, "pdfkit"
306+
, "png-js"
307+
, "regexp.prototype.flags"
308+
, "restructure"
309+
, "tiny-inflate"
310+
, "unicode-properties"
311+
, "unicode-trie"
285312
]
286313
mapM_ (\lib -> do
287314
cptree ("../node_modules" </> lib) ((fromText pathtoapp) </> "Contents/Resources/app/node_modules" </> lib)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@
213213
"cardano-js": "0.4.8",
214214
"cardano-launcher": "0.20220119.0",
215215
"cbor": "5.0.2",
216+
"cbor-web": "7.0.6",
216217
"check-disk-space": "3.2.0",
217218
"chroma-js": "2.1.0",
218219
"classnames": "2.2.6",
@@ -261,7 +262,7 @@
261262
"react-custom-scrollbars": "4.2.1",
262263
"react-datetime": "3.0.4",
263264
"react-dom": "16.14.0",
264-
"react-intl": "2.7.2",
265+
"react-intl": "2.9.0",
265266
"react-lottie": "1.2.3",
266267
"react-markdown": "5.0.3",
267268
"react-polymorph": "1.0.4",
@@ -301,7 +302,6 @@
301302
}
302303
},
303304
"resolutions": {
304-
"@types/react": "16.9.56",
305305
"**/**/handlebars": "4.7.7",
306306
"**/**/elliptic": "6.5.4",
307307
"**/**/bl": "4.1.0",

source/main/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ module.exports = {
5858
minimize: false,
5959
},
6060
resolve: {
61+
symlinks: true, // for native libraries
6162
extensions: ['.ts', '.tsx', '.js', '.json'],
6263
},
6364
module: {

source/renderer/webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ module.exports = {
100100
],
101101
},
102102
resolve: {
103+
symlinks: true, // for native libraries
103104
extensions: ['.ts', '.tsx', '.js', '.json'],
105+
alias: {
106+
react: require.resolve('react'),
107+
},
104108
fallback: {
105109
process: require.resolve('process/browser'),
106110
path: require.resolve('path-browserify'),

yarn.lock

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2986,11 +2986,7 @@
29862986
version "1.3.2"
29872987
resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.2.tgz#93e25bf9ee75fe0fd80b594bc4feb0e862111b5a"
29882988

2989-
"@types/minimatch@*":
2990-
version "3.0.5"
2991-
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40"
2992-
2993-
"@types/minimatch@^3.0.3":
2989+
"@types/minimatch@*", "@types/minimatch@^3.0.3":
29942990
version "3.0.5"
29952991
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.5.tgz#1001cc5e6a3704b83c236027e77f2f58ea010f40"
29962992

@@ -5324,6 +5320,10 @@ [email protected]:
53245320
dependencies:
53255321
big-integer "1.6.36"
53265322

5323+
5324+
version "7.0.6"
5325+
resolved "https://registry.yarnpkg.com/cbor-web/-/cbor-web-7.0.6.tgz#6e23a0c58db4c38e485e395de511b9e2f628961c"
5326+
53275327
cbor-web@^7.0.6:
53285328
version "7.0.6"
53295329
resolved "https://registry.yarnpkg.com/cbor-web/-/cbor-web-7.0.6.tgz#6e23a0c58db4c38e485e395de511b9e2f628961c"
@@ -9224,10 +9224,6 @@ hmac-drbg@^1.0.1:
92249224
minimalistic-assert "^1.0.0"
92259225
minimalistic-crypto-utils "^1.0.1"
92269226

9227-
hoist-non-react-statics@^2.5.5:
9228-
version "2.5.5"
9229-
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-2.5.5.tgz#c5903cf409c0dfd908f388e619d86b9c1174cb47"
9230-
92319227
hoist-non-react-statics@^3.1.0, hoist-non-react-statics@^3.3.0:
92329228
version "3.3.2"
92339229
resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45"
@@ -11694,25 +11690,7 @@ minimalistic-crypto-utils@^1.0.1:
1169411690
version "1.0.1"
1169511691
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
1169611692

11697-
11698-
version "3.1.2"
11699-
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
11700-
dependencies:
11701-
brace-expansion "^1.1.7"
11702-
11703-
minimatch@^3.0.2:
11704-
version "3.1.2"
11705-
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
11706-
dependencies:
11707-
brace-expansion "^1.1.7"
11708-
11709-
minimatch@^3.0.4:
11710-
version "3.1.2"
11711-
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
11712-
dependencies:
11713-
brace-expansion "^1.1.7"
11714-
11715-
minimatch@^3.1.2:
11693+
minimatch@^3.0.2, minimatch@^3.0.4, minimatch@^3.1.2:
1171611694
version "3.1.2"
1171711695
resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b"
1171811696
dependencies:
@@ -13768,11 +13746,11 @@ [email protected]:
1376813746
json-stable-stringify "^1.0.1"
1376913747
mkdirp "^0.5.1"
1377013748

13771-
react-intl@2.7.2:
13772-
version "2.7.2"
13773-
resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-2.7.2.tgz#efe97e3fc0e99b4e88a6e6150854d3d1852a4381"
13749+
react-intl@2.9.0:
13750+
version "2.9.0"
13751+
resolved "https://registry.yarnpkg.com/react-intl/-/react-intl-2.9.0.tgz#c97c5d17d4718f1575fdbd5a769f96018a3b1843"
1377413752
dependencies:
13775-
hoist-non-react-statics "^2.5.5"
13753+
hoist-non-react-statics "^3.3.0"
1377613754
intl-format-cache "^2.0.5"
1377713755
intl-messageformat "^2.1.0"
1377813756
intl-relativeformat "^2.1.0"

yarn2nix.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ yarn2nix.mkYarnPackage {
124124
rm -rf $out/resources/app/{installers,launcher-config.yaml,gulpfile.js,home}
125125
126126
mkdir -pv $out/resources/app/node_modules
127-
cp -rv $node_modules/{\@babel,\@protobufjs,regenerator-runtime,node-fetch,\@trezor,runtypes,parse-uri,randombytes,safe-buffer,bip66,pushdata-bitcoin,bitcoin-ops,typeforce,varuint-bitcoin,create-hash,blake2b,nanoassert,blake2b-wasm,bs58check,bs58,base-x,create-hmac,wif,ms,keccak,semver-compare,long,define-properties,object-keys,has,function-bind,es-abstract,has-symbols,json-stable-stringify,tiny-worker,cashaddrjs,big-integer,inherits,bchaddrjs,cross-fetch,trezor-connect,js-chain-libs-node,bignumber.js,call-bind,get-intrinsic,base64-js,ieee754,cbor-web,util-deprecate,bech32,blake-hash,blake2,tiny-secp256k1,bn.js,elliptic,minimalistic-assert,minimalistic-crypto-utils,brorand,hash.js,hmac-drbg,int64-buffer,object.values,bytebuffer,protobufjs,usb-detection} $out/resources/app/node_modules
127+
cp -rv $node_modules/{\@babel,\@protobufjs,regenerator-runtime,node-fetch,\@trezor,runtypes,parse-uri,randombytes,safe-buffer,bip66,pushdata-bitcoin,bitcoin-ops,typeforce,varuint-bitcoin,create-hash,blake2b,nanoassert,blake2b-wasm,bs58check,bs58,base-x,create-hmac,wif,ms,keccak,semver-compare,long,define-properties,object-keys,has,function-bind,es-abstract,has-symbols,json-stable-stringify,tiny-worker,cashaddrjs,big-integer,inherits,bchaddrjs,cross-fetch,trezor-connect,js-chain-libs-node,bignumber.js,call-bind,get-intrinsic,base64-js,ieee754,cbor-web,util-deprecate,bech32,blake-hash,blake2,tiny-secp256k1,bn.js,elliptic,minimalistic-assert,minimalistic-crypto-utils,brorand,hash.js,hmac-drbg,int64-buffer,object.values,bytebuffer,protobufjs,usb-detection,babel-runtime,bindings,brotli,buffer,clone,deep-equal,dfa,eventemitter2,file-uri-to-path,fontkit,functions-have-names,has-property-descriptors,has-tostringtag,is-arguments,is-date-object,is-regex,linebreak,node-hid,object-is,pdfkit,png-js,regexp.prototype.flags,restructure,tiny-inflate,unicode-properties,unicode-trie} $out/resources/app/node_modules
128128
129129
cd $out/resources/app/
130130
unzip ${./nix/windows-usb-libs.zip}

0 commit comments

Comments
 (0)