سلام.
من واقعا حوصله ندارم توضیح بدم این چطوری کار میکنه.فقط اینکه جند برابر چیزی که میخواهی رو انجام میده و اگر کدش رو بخونی خودت میتونی طرز کارش رو یاد بگیری(هم میتونی از این استقاده کنی و هم میتونی از کدش یا ایده هاش استفاده کنی):
https://github.com/Behrooz-Amoozad/D...z.WebInstaller
نمونه دستور آپلود:
#!/bin/bash
rm bin/manifest.xml* bin/*.xml~ bin/*/*.xml~ bin/*/*/*.xml~ bin/example*.log bin/manifest.xml.sig bin/temp/*
chmod 0755 bin/Executable*.exe bin/*.exe.config
cp -a example/*.dll bin/
cd bin
rm manifest.xml
mono Behrooz.WebInstaller.exe configure \
--package name=linux-common install-path= platform=Linux remote-path=platforms/linux-common/ \
--package name=win-common install-path= platform=Windows remote-path=platforms/win-common/ \
--package name=bin install-path= platform=Common remote-path= executable=Executable.exe \
--auto-discovery --uri "http://sub.example.com/update/" \
--certificate "../sub.example.com.crt" --version 1 --output manifest.xml
gpg --output manifest.xml.sig --detach-sig manifest.xml
rsync -e 'ssh -2Cp 1433' -v --delete --checksum -Pa --checksum --inplace ./ root@sub.example.com:/var/www-sub.example.com/update