Skip to content

Commit

Permalink
fix: powershell core alias
Browse files Browse the repository at this point in the history
  • Loading branch information
qingyiwebt committed Jul 21, 2024
1 parent 9a455a8 commit cf94e5f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

jobs:
greet:
create-patch:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions DevClean.ps1
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rm -Recurse PatchedSources/
rm -Recurse OriginalSources/
Remove-Item -Recurse PatchedSources/
Remove-Item -Recurse OriginalSources/
6 changes: 3 additions & 3 deletions DevPatch.ps1
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions DevRestore.ps1
Original file line number Diff line number Diff line change
@@ -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
Copy-Item -Recurse DevSources/ OriginalSources
Copy-Item -Recurse DevPatches/ PatchedSources
4 changes: 2 additions & 2 deletions MkPatch.ps1
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
rm PatchedSources/Polyfill.h
Remove-Item PatchedSources/Polyfill.h

$patchFileRaw = "Patches/quickjs-patches-raw.patch";
$patchFile = "Patches/quickjs-patches.patch";

git diff OriginalSources/ PatchedSources/ | Set-Content $patchFileRaw
Get-Content -Raw $patchFileRaw | % {$_ -replace "`r", ""} | Set-Content -NoNewline $patchFile

rm $patchFileRaw
Remove-Item $patchFileRaw
8 changes: 4 additions & 4 deletions Patch.ps1
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cf94e5f

Please sign in to comment.