summaryrefslogtreecommitdiff
path: root/core/src/cli
diff options
context:
space:
mode:
authorDeepChirp <[email protected]>2024-11-21 17:09:25 +0800
committerDeepChirp <[email protected]>2024-11-21 17:09:25 +0800
commite0708d805c2af8c9cc37c88267eece421edc1c93 (patch)
treeef9ea0719fde5c9064acbf453afb0e1f12cd2e6c /core/src/cli
parent2db856f0b66351389847583b7f3c128666e00c16 (diff)
feat(msys2): add `xmake.cmd` and `xmake.ps1` for better integration with Windows cmd and powershell
Diffstat (limited to 'core/src/cli')
-rwxr-xr-xcore/src/cli/xmake.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/cli/xmake.sh b/core/src/cli/xmake.sh
index 531a6e86a..92825e26f 100755
--- a/core/src/cli/xmake.sh
+++ b/core/src/cli/xmake.sh
@@ -70,6 +70,8 @@ xmake_after_install() {
if test_eq "${project_generator}" "gmake"; then
print "\t@if test -f ${installdir}/bin/xmake.exe; then rm ${installdir}/bin/xmake.exe; fi" >> "${xmake_sh_makefile}"
print "\t@cp ${projectdir}/scripts/msys/xmake.sh ${installdir}/bin/xmake" >> "${xmake_sh_makefile}"
+ print "\t@cp ${projectdir}/scripts/msys/xmake.cmd ${installdir}/bin/xmake.cmd" >> "${xmake_sh_makefile}"
+ print "\t@cp ${projectdir}/scripts/msys/xmake.ps1 ${installdir}/bin/xmake.ps1" >> "${xmake_sh_makefile}"
print "\t@cp ${buildir}/xmake.exe ${installdir}/share/xmake" >> "${xmake_sh_makefile}"
fi
}