Skip to content

Commit a0be2bd

Browse files
committed
mingw.js - fix openssl 1.0.2 install
1 parent 0202e2b commit a0be2bd

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

dist/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,11 +607,11 @@ const openssl = async () => {
607607
})
608608

609609
if (ruby.abiVers === '2.4.0') {
610-
const uri = `https://dl.bintray.com/larskanis/rubyinstaller2-packages/${pre.trim()}openssl-1.0.2.u-1-any.pkg.tar.zst`
611-
const fn = `${dlPath}\\ri2.tar.zst`
610+
let uri = `https://dl.bintray.com/larskanis/rubyinstaller2-packages/${pre.trim()}openssl-1.0.2.u-1-any.pkg.tar.zst`
611+
let fn = `${dlPath}\\ri2.tar.zst`
612612
msSt = grpSt('install 2.4 OpenSSL')
613613
await download(uri, fn)
614-
execSync(`pacman.exe -R --noconfirm --noprogressbar ${pre.trim()}openssl`)
614+
await download(`${uri}.sig`, `${fn}.sig`)
615615
execSync(`pacman.exe -Udd --noconfirm --noprogressbar ${fn}`)
616616
grpEnd(msSt)
617617
mingw = mingw.replace(/\bopenssl\b/gi, '').trim()

dist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-ruby-pkgs",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"description": "Install packages and update builds tools for Ruby",
55
"main": "index.js",
66
"scripts": {

mingw.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ const openssl = async () => {
7676
})
7777

7878
if (ruby.abiVers === '2.4.0') {
79-
const uri = `https://dl.bintray.com/larskanis/rubyinstaller2-packages/${pre.trim()}openssl-1.0.2.u-1-any.pkg.tar.zst`
80-
const fn = `${dlPath}\\ri2.tar.zst`
79+
let uri = `https://dl.bintray.com/larskanis/rubyinstaller2-packages/${pre.trim()}openssl-1.0.2.u-1-any.pkg.tar.zst`
80+
let fn = `${dlPath}\\ri2.tar.zst`
8181
msSt = grpSt('install 2.4 OpenSSL')
8282
await download(uri, fn)
83-
execSync(`pacman.exe -R --noconfirm --noprogressbar ${pre.trim()}openssl`)
83+
await download(`${uri}.sig`, `${fn}.sig`)
8484
execSync(`pacman.exe -Udd --noconfirm --noprogressbar ${fn}`)
8585
grpEnd(msSt)
8686
mingw = mingw.replace(/\bopenssl\b/gi, '').trim()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-ruby-pkgs",
3-
"version": "1.7.0",
3+
"version": "1.8.0",
44
"description": "Install packages and update builds tools for Ruby",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)