From 145de4e288d30d930d4f9762903d279270db19f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=E9=87=91=E5=8F=AF=E6=98=8E?= Date: Wed, 1 May 2024 22:54:30 +0200 Subject: [PATCH 1/2] feat: add missing rust toolchain target --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7eefad1c..2179ce98 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,7 +50,7 @@ jobs: - name: Install Rust stable uses: dtolnay/rust-toolchain@stable with: - targets: aarch64-apple-darwin, aarch64-unknown-linux-gnu + targets: aarch64-apple-darwin, x86_64-apple-darwin, aarch64-unknown-linux-gnu - name: Install Cargo dependencies (linux) if: runner.os == 'Linux' From 6cb99a4cd1b6aaa575cc50a8a024c58b62788855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20=E9=87=91=E5=8F=AF=E6=98=8E?= Date: Wed, 1 May 2024 23:11:42 +0200 Subject: [PATCH 2/2] fix: fallback to root dir for windows install script --- scripts/install.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/install.ps1 b/scripts/install.ps1 index b232703d..2805d185 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -1,4 +1,10 @@ +$RootDir = Resolve-Path -Path ((Split-Path $MyInvocation.MyCommand.Path) + "\..") $InstallDir = $args[0] + +if (-not $InstallDir) { + $InstallDir = $RootDir +} + $BinDir = "$InstallDir\bin" $OutFile = "$BinDir\vim-doge-helper.exe" @@ -14,7 +20,6 @@ else { $AssetName = "vim-doge-helper-windows-x86_64.zip" } -$RootDir = Resolve-Path -Path ((Split-Path $MyInvocation.MyCommand.Path) + "\..") $AppVersion = Get-Content "$RootDir\.version" $AssetPath = "$RootDir\bin\$AssetName"