[batch] sm plugins ftp (sftp) uploader
3 Attachment(s)
This CMD (batch) file allows you save a time if:
Purpose: It automatically compile and upload smx file to FTP (using CURL or Putty) as soon as its timestamp is changed. When you edit your .sp file press Ctrl + S and it will be compiled (in background) and uploaded in a second. Alternatively, you can set to track only smx (compiled files). Versions: There are 2 version of uploader:
Preparation: 1) (optional) Using Plugin-autoreload is highly recommended. See attached autoreload.zip (it is an optimized fork of original). Compile it and place in server .../addons/sourcemod/plugins/ folder. 2) Download one of attached sm_upload_*.zip archive. Unpack. 3) Dependency: - (for v.1.2 only) Download and place CURL.exe in the same folder. - (for v.1.3 only) Install Putty - Download local compiler: from here. Unzip it. 4) Edit "sm_upload.cmd" file (open in notepad: right mouse click => Edit). Set correct path and settings here: Code:
:: path to spcomp.exe of local compiler How to use: 1) Edit "plugins.txt" file: add full paths to plugins (smx or sp) you want to track. 2) Run "sm_upload.cmd" file and minimize its window to tray every time you need uploader to work. Alternatively: You can add files for tracking by context menu (Right Button Mouse Click on any.sp or any.smx file => SendTo => "SM - Track for upload"). To install such menu:
You are ready. Good luck. Compatibility: Windows Vista+. Update Now *.phrases.txt files are also supported. |
Re: [batch] sm plugins ftp uploader
Updated to v1.1
- Added opportunity to set mask * like c:\path\*.sp (though, it's not recursive, subfolders are not included). - Added opportunity to add files for tracking by context menu => SendTo (see above for instruction how to add). - Improved error displaying - curl: removed -v switch. Add it yourself if you want verbose info. |
Re: [batch] sm plugins ftp uploader
Updated to v1.2
- Fixed cases with infinite uploading when plugin name begins with number. - Fixed infinite errors in console when file is no longer exists. - Improved console log formatting. - Added ability to track and upload translation files (*.phrases.txt). - Added ability to upload source files (it's require you change "upload_source" variable to 'true'). Disabled by default. - Added ability to track and upload any kind of files (files that not meet criteria *.sp, *.smx, *.phrases.txt will be uploaded to addons/sourcemod/data/ folder, defined by "data" variable). - Added variable "scripting" - location of source files subfolder on ftp ('addons/sourcemod/scripting/' by default). - Added variable "plugins" - location of plugins subfolder on ftp ('addons/sourcemod/plugins/' by default). - Added variable "translations" - location of translations subfolder on ftp ('addons/sourcemod/translations/' by default). - Added variable "data" - location of data subfolder on ftp ('addons/sourcemod/data/' by default). - BE ATTENTIVE !!! Format of "ftp" variable is changed!!! Now it include only ftp authorization, ip and root folder name only (without full path to 'plugins'). |
Re: [batch] sm plugins ftp uploader
Added FTP (SFTP) Uploader v.1.3:
Quote:
Quote:
Quote:
|
All times are GMT -4. The time now is 09:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.