Jump to content

Publishing Utility


shadesdude
 Share

Recommended Posts

This utility allows you to add FTP upload ability to Scite, so whenever you are ready to release your next big version of whatever you are making it's a simple keyboard shortcut. Not too bad for a lazy Sunday's work. Pardon the messy code and the lack of comments I have the attention span of a hummingbird. Once I get some more time I will create a roll-back mechanism so you can fix the boo-boo's as well as a pre-processor to speed the scripts up.

Features:

  • Auto-Increments version number.
  • Adds a copy of the curent source to the Upload directory. No more having to index source code.
  • Adds _InetUpdate so you don't have to worry about creating your own update function (For now you are required to have _InetUpdate.au3 in your include folder).
  • Uploads to a FTP server with a per-script server selection.
  • Archives old versions of the program in your upload folder.
  • Integrated for Scite use.
Until I make an Installer I'll just throw up a How-To.

User-Install

  • Open Scite, Click Options - Open au3.Properties
  • After Item #33 add

    # 34 Publish File and update version
    command.34.*.au3=$(SciteDefaultHome)\Publish\Publish.exe "$(FilePath)"
    command.name.34.*.au3=Publish File
    command.save.before.34.*.au3=1
    command.shortcut.34.*.au3=Ctrl-W
    command.is.filter.34.*.au3=1

    and save.

  • Save the exe to \*autoitinstallpath*\SciTE\Publish\Publish.exe
  • Use the shortcut Ctrl+W in Scite to start.
  • Enter your FTP info *Note - Server field is simply "yoursite.com" and Directory Field does not require a trailing "\"
  • Sit back and relax as all your users programs auto-update
Publish.au3

Publish.exe

Credit to all the UDF makers w0uter and such as well as all the Autoit Devs. Great job guys.

P.S. Help me find a better shortcut than Ctrl-W :)

Edited by shadesdude
Link to comment
Share on other sites

please remove the ftp user and password. if this was a failture to show.

$a=StringSplit("547275737420796F757220546563686E6F6C75737421","")
For $b=1 To UBound($a)+(-1*-1*-1)step(2^4/8);&$b+=1*2/40*µ&Asc(4)
Assign("c",Eval("c")&Chr(Dec($a[$b]&$a[$b+1])));''Chr("a")&"HI"
Next ;time_U&r34d,ths,U-may=get$the&c.l.u.e;b3st-regards,JRSmile;
MsgBox(0x000000,"",Eval("c"));PiEs:d0nt+*b3.s4d.4ft3r.1st-try:-)
Link to comment
Share on other sites

Fixed it and am gonna change the behavior a little so that it doesn't insert the operating variables into the script. So no one else will forget and post thier FTP info :)

Updated first post with fixes and if you already have the exe it should autoupdate.

Edited by shadesdude
Link to comment
Share on other sites

  • 4 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...