eitri-cli 1.9.0-beta.14 → 1.9.0-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -89,6 +89,7 @@ pipelines:
89
89
  - export CC=o64-clang
90
90
  - export CXX=o64-clang++
91
91
  - cd eitri-cli-v2
92
+ - cargo add openssl --features vendored
92
93
  - npm install
93
94
  - npm run build -- --target aarch64-apple-darwin
94
95
  - npm run build -- --target x86_64-apple-darwin
@@ -102,10 +103,10 @@ pipelines:
102
103
  - eitri-cli-v2.darwin-x64.node
103
104
  - index.d.ts
104
105
  - rust-index.js
105
- - step: &linuxAndWindowsCrossCompile
106
+ - step: &linuxCrossCompile
106
107
  caches:
107
108
  - node
108
- name: 'Linux and Windows cross compile'
109
+ name: 'Linux compile'
109
110
  script:
110
111
  - apt-get update
111
112
  - apt-get install -y git
@@ -119,18 +120,38 @@ pipelines:
119
120
  - export PATH="/root/.cargo/bin:${PATH}"
120
121
  - rustup --version
121
122
  - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
122
- - rustup target add x86_64-pc-windows-msvc
123
123
  - rustup target add x86_64-unknown-linux-gnu
124
- - cargo install cargo-xwin
125
124
  - cd eitri-cli-v2
125
+ - cargo add openssl --features vendored
126
126
  - npm install
127
127
  - npm run build -- --target x86_64-unknown-linux-gnu
128
- - npm run build -- --target x86_64-pc-windows-msvc
129
- - ls
130
128
  - cp -r ./eitri-cli-v2.linux-x64-gnu.node ../eitri-cli-v2.linux-x64-gnu.node
131
- - cp -r ./eitri-cli-v2.win32-x64-msvc.node ../eitri-cli-v2.win32-x64-msvc.node
132
129
  artifacts:
133
130
  - eitri-cli-v2.linux-x64-gnu.node
131
+ - step: &windowsCrossCompile
132
+ caches:
133
+ - node
134
+ name: 'Windows cross compile'
135
+ script:
136
+ - apt-get update
137
+ - apt-get install -y git
138
+ - apt-get install -y libssl-dev
139
+ - apt-get install -y libudev-dev
140
+ - apt-get install -y pkg-config
141
+ - apt-get install -y cargo
142
+ - apt-get install -y gcc-mingw-w64
143
+ - apt-get install -y curl
144
+ - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
145
+ - export PATH="/root/.cargo/bin:${PATH}"
146
+ - rustup --version
147
+ - curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
148
+ - rustup target add x86_64-pc-windows-msvc
149
+ - cargo install cargo-xwin
150
+ - cd eitri-cli-v2
151
+ - npm install
152
+ - npm run build -- --target x86_64-pc-windows-msvc
153
+ - cp -r ./eitri-cli-v2.win32-x64-msvc.node ../eitri-cli-v2.win32-x64-msvc.node
154
+ artifacts:
134
155
  - eitri-cli-v2.win32-x64-msvc.node
135
156
  branches:
136
157
  "**":
@@ -148,7 +169,8 @@ pipelines:
148
169
  - parallel:
149
170
  fail-fast: true
150
171
  steps:
151
- - step: *linuxAndWindowsCrossCompile
172
+ - step: *windowsCrossCompile
173
+ - step: *linuxCrossCompile
152
174
  - step: *macOSCrossCompile
153
175
  - step:
154
176
  name: "Generation of a new version: beta or stable."
@@ -22,6 +22,15 @@ serde_derive = "1.0.197"
22
22
  serde_json = "1.0.114"
23
23
  tokio = { version = "1.36.0", features = ["full"] }
24
24
 
25
+ [target.x86_64-unknown-linux-gnu]
26
+ openssl = { version = "0.9", features = ["vendored"] }
27
+
28
+ [target.aarch64-apple-darwin]
29
+ openssl = { version = "0.9", features = ["vendored"] }
30
+
31
+ [target.x86_64-apple-darwin]
32
+ openssl = { version = "0.9", features = ["vendored"] }
33
+
25
34
  [build-dependencies]
26
35
  napi-build = "2.0.1"
27
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eitri-cli",
3
- "version": "1.9.0-beta.14",
3
+ "version": "1.9.0-beta.16",
4
4
  "description": "Command Line Interface to make \"Eitri-App\" with code and fire.",
5
5
  "main": "index.js",
6
6
  "bin": {