endziu2222
Active Member
- Joined
- Nov 2, 2010
- Messages
- 181
- Solutions
- 1
- Reaction score
- 49
Hi All,
I have been trying to install plugin guild-wars from Slaw. The problem I have he have included .sh script to create plugin for install.
It does not work for windows so I created this .bat
It does create zip file but it does not let me upload it...
file guild-war:
Anyone can help?
I have been trying to install plugin guild-wars from Slaw. The problem I have he have included .sh script to create plugin for install.
It does not work for windows so I created this .bat
Lua:
@echo off
setlocal enabledelayedexpansion
:: Read the version from the JSON file
for /f %%v in ('powershell -command "(Get-Content plugins/guild-wars.json | ConvertFrom-Json).version"') do (
set "VERSION=%%v"
)
:: Define the name of the ZIP file
set "NAME=myaac-guild-wars-v%VERSION%.zip"
:: Remove the existing ZIP file (if it exists)
if exist "%NAME%" (
del /q "%NAME%"
)
:: Create the new ZIP file
powershell -command "Compress-Archive -Path plugins\* -DestinationPath '%NAME%' -Force"
It does create zip file but it does not let me upload it...
file guild-war:
Anyone can help?
Attachments
-
guild-wars.rar25.2 KB · Views: 23 · VirusTotal