Skip to content

Commit

Permalink
ci: bump librime 1.13.1
Browse files Browse the repository at this point in the history
ci: always build with latest released librime
chore: remove github.install.bat(never used any longer)
chore(get-rime.ps1): auto get 7z cmd from github repo if 7z.exe not in path
  • Loading branch information
fxliang committed Feb 16, 2025
1 parent 98ff81e commit 3c7923a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 39 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/commit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
.\get-rime.ps1 -tag 1.13.0 -use dev
.\get-rime.ps1 -use dev
- name: Build data
shell: pwsh
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
.\get-rime.ps1 -tag 1.13.0 -use dev
.\get-rime.ps1 -use dev
- name: Build data
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
shell: pwsh
run: |
$ErrorActionPreference = 'Stop'
.\get-rime.ps1 -tag 1.13.0 -use dev
.\get-rime.ps1 -use dev
- name: Build data
run: |
Expand Down
16 changes: 14 additions & 2 deletions get-rime.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,20 @@ try {
} catch {
$cmdOk = $false
if($extract) {
Write-Host "❌ Error: 7z is not available. Maybe 7z is not in PATH or not installed"
SafeExit
Write-Host "❌ Error: 7z is not available. Maybe 7z is not in PATH or not installed";
$original_7z_url = "https://github.com/ip7z/7zip/releases/download/24.08/7zr.exe";
if ($url_pat -and $url_replace) {
$original_7z_url = $original_7z_url -replace $url_pat, $url_replace;
}
try {
Write-Host "We will download 7z console tool from: $original_7z_url";
Invoke-WebRequest -Uri $original_7z_url -OutFile ".\7z.exe";
$env:Path += ";$PWD";
$cmdOk = $true
} catch{
Write-Host "Error download 7z commandline tool";
SafeExit
}
}
}
# check 64 bit
Expand Down
33 changes: 0 additions & 33 deletions github.install.bat

This file was deleted.

0 comments on commit 3c7923a

Please # to comment.