From cf94e5f33ebc6fc408244797b2781221119e17d6 Mon Sep 17 00:00:00 2001 From: qingyiwebt Date: Sun, 21 Jul 2024 15:57:56 +0800 Subject: [PATCH] fix: powershell core alias --- .github/workflows/patch.yml | 2 +- DevClean.ps1 | 4 ++-- DevPatch.ps1 | 6 +++--- DevRestore.ps1 | 8 ++++---- MkPatch.ps1 | 4 ++-- Patch.ps1 | 8 ++++---- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml index 78ca6cd..f396b8c 100644 --- a/.github/workflows/patch.yml +++ b/.github/workflows/patch.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: jobs: - greet: + create-patch: runs-on: ubuntu-latest steps: - name: Checkout diff --git a/DevClean.ps1 b/DevClean.ps1 index 641bc28..5469cd4 100644 --- a/DevClean.ps1 +++ b/DevClean.ps1 @@ -1,2 +1,2 @@ -rm -Recurse PatchedSources/ -rm -Recurse OriginalSources/ +Remove-Item -Recurse PatchedSources/ +Remove-Item -Recurse OriginalSources/ diff --git a/DevPatch.ps1 b/DevPatch.ps1 index af2ddd0..cc0cefd 100644 --- a/DevPatch.ps1 +++ b/DevPatch.ps1 @@ -1,8 +1,8 @@ Write-Host "Coping sources..." -rm -Recurse PatchedSources/ -cp -Recurse OriginalSources/ PatchedSources/ +Remove-Item -Recurse PatchedSources/ +Copy-Item -Recurse OriginalSources/ PatchedSources/ Write-Host "Patching sources..." -cp Patches/Polyfill.h PatchedSources/ +Copy-Item Patches/Polyfill.h PatchedSources/ git apply --reject --whitespace=fix Patches/quickjs-patches.patch diff --git a/DevRestore.ps1 b/DevRestore.ps1 index f77aa58..fe52250 100644 --- a/DevRestore.ps1 +++ b/DevRestore.ps1 @@ -1,5 +1,5 @@ -rm -Recurse PatchedSources/ -rm -Recurse OriginalSources/ +Remove-Item -Recurse PatchedSources/ +Remove-Item -Recurse OriginalSources/ -cp -Recurse DevSources/ OriginalSources -cp -Recurse DevPatches/ PatchedSources \ No newline at end of file +Copy-Item -Recurse DevSources/ OriginalSources +Copy-Item -Recurse DevPatches/ PatchedSources \ No newline at end of file diff --git a/MkPatch.ps1 b/MkPatch.ps1 index 39aa18f..583e428 100644 --- a/MkPatch.ps1 +++ b/MkPatch.ps1 @@ -1,4 +1,4 @@ -rm PatchedSources/Polyfill.h +Remove-Item PatchedSources/Polyfill.h $patchFileRaw = "Patches/quickjs-patches-raw.patch"; $patchFile = "Patches/quickjs-patches.patch"; @@ -6,4 +6,4 @@ $patchFile = "Patches/quickjs-patches.patch"; git diff OriginalSources/ PatchedSources/ | Set-Content $patchFileRaw Get-Content -Raw $patchFileRaw | % {$_ -replace "`r", ""} | Set-Content -NoNewline $patchFile -rm $patchFileRaw \ No newline at end of file +Remove-Item $patchFileRaw \ No newline at end of file diff --git a/Patch.ps1 b/Patch.ps1 index 91a7f81..a827869 100644 --- a/Patch.ps1 +++ b/Patch.ps1 @@ -1,9 +1,9 @@ Write-Host "Coping sources..." -rm -Recurse PatchedSources/ -rm -Recurse OriginalSources/ +Remove-Item -Recurse PatchedSources/ +Remove-Item -Recurse OriginalSources/ git clone https://github.com/bellard/quickjs OriginalSources -cp -Recurse OriginalSources/ PatchedSources/ +Copy-Item -Recurse OriginalSources/ PatchedSources/ Write-Host "Patching sources..." -cp Patches/Polyfill.h PatchedSources/ +Copy-Item Patches/Polyfill.h PatchedSources/ git apply --reject --whitespace=fix Patches/quickjs-patches.patch