Skip to content

Commit

Permalink
Disable the initial key refresh
Browse files Browse the repository at this point in the history
It takes 10 seconds and in the common case doesn't change anything. It would
only be relevant in case an existing key in the keyring expires which can easily
be prevented if we always use the newest installer (which is a good idea anyway,
to keep the amount of initial updates low)

Fixes #45
  • Loading branch information
lazka committed Jul 15, 2020
1 parent 1f0dc54 commit e61dc97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ async function run() {

changeGroup('Extracting MSYS2...');
await exec.exec(inst_dest, ['-y'], {cwd: dest});

changeGroup('Disable Key Refresh...');
let post_file = `${dest}\\msys64\\etc\\post-install\\07-pacman-key.post`;
await exec.exec(`powershell.exe`, [`((Get-Content -path ${post_file} -Raw) -replace '--refresh-keys', '--version') | Set-Content -Path ${post_file}`]);
core.endGroup();
}

Expand Down

0 comments on commit e61dc97

Please sign in to comment.