{"id":20,"date":"2010-05-30T20:47:34","date_gmt":"2010-05-30T20:47:34","guid":{"rendered":"http:\/\/soliloquyforthefallen.net\/blog\/?p=20"},"modified":"2015-03-05T07:21:33","modified_gmt":"2015-03-05T07:21:33","slug":"geany-portable-nightly-edition","status":"publish","type":"post","link":"https:\/\/soliloquyforthefallen.net\/?p=20","title":{"rendered":"Geany Portable, Nightly Edition"},"content":{"rendered":"<p>So, around January, I started playing with batch scripting (I&#8217;m terrible at it still).\u00a0 Anyway, I had installed MingW so that I could compile geany nightlies from source on my server.\u00a0 The ones hosted at <a href=\"http:\/\/geany.org\">geany.org<\/a> are cross compiled, unlike mine.<\/p>\n<p>Anyway, I created a script that would download the svn posted on the server, extract it, compile, and then copy it into a folder and then compress it so I would have a portable version of the geany nightly, natively compiled.<\/p>\n<p>The trick was to get it up to a server.\u00a0 Windows (my server is Windows Server 2003), has a built-in ftp client, that can be called from the command line.\u00a0 It can even be scripted.\u00a0 The problem is that it didn&#8217;t work for my.\u00a0 So I was stuck trying to get it to the outside world until I figured out how to ftp it to another site.<\/p>\n<p>The answer is <a href=\"http:\/\/winscp.net\/eng\/docs\/scripting\">WinSCP<\/a>.\u00a0 WinSCP allows scripting, in a variety of forms.\u00a0 I had stumbled across this at some point, it wasn&#8217;t until I created a backup script for my mother&#8217;s computer (more to come on that one) that I rehashed the script I had been using to add upload abilities.<\/p>\n<p>The script itself is far from complete but I thought that by posting this, I might help someone else in a similar situation.\u00a0 I&#8217;ve tried to comment it pretty well, since it sucks when someone posts something and there is no comments.<\/p>\n<pre>REM This script requires you to have wget either in the script folder or in your %PATH%\nREM It also requires a copy of the 7Zip command line tools\nREM You also need the winscp binaries\n\ncd ........\nREM Change directory to root of drive\ncd nightly\nREM change to nightly folder\nwget http:\/\/files.uvena.de\/geany\/geany_svn.tar.gz\nREM download the nightly tar ball generated by Geany Project from server\n7za e geany_svn.tar.gz\n7za x geany_svn.tar\nREM extract geany via 7zip command line\nMakeBuilder.exe\nREM this is a custom program that changes a single line within the geany make file so that it is compatible with a stock mingw install\ncd geany_svn\nmingw32-make -f makefile.win32\nREM go the the geany svn folder and build the binary\ncd ..\nREM get out of the geany_svn folder\nerase C:nightlyGeanyPortableAppGeanybingeany.exe\nerase geany_svn.tar\nerase geany_svn.tar.gz\nREM clear out unneeded stuff\ncopy geany_svngeany.exe C:nightlyGeanyPortableAppGeanybin\nREM copy the binary over to the bin folder in Geany Portable\nrmdir \/s \/q C:nightlyGeanyPortableDatasettings\nREM delete the datasettings folder so that any of my settings are not copied to you\n7za a -sfx7z.sfx GeanyPortable%date:~4,2%-%date:~-7,2%-%date:~-4,4%.exe GeanyPortable\nREM create a self extracting 7-zip package with a month-data-year ending name\nwinscp \/console \/command \"option batch on\" \"open login:password@host\" \"put GeanyPortable%date:~4,2%-%date:~-7,2%-%date:~-4,4%.exe \/downloads\/Geany\/nightlies\/\" \"exit\" \"close\"\nREM upload the file to the intellilaunch server via winscp binary\nerase GeanyPortable%date:~4,2%-%date:~-7,2%-%date:~-4,4%.exe\nREM erase the file from the \"local\" location\nrmdir \/s \/q geany_svn\nREM delete the geany_svn folder so that the directory can be extracted without needing to overwrite anything<\/pre>\n<p>If you are wondering where to get those Geany nightlies I mentioned,  they are right <a href=\"http:\/\/intellilaunch.co.cc\/downloads\/Geany\/nightlies\/?path=Geany\/nightlies\">over here.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, around January, I started playing with batch scripting (I&#8217;m terrible at it still).\u00a0 Anyway, I had installed MingW so that I could compile geany nightlies from source on my server.\u00a0 The ones hosted at geany.org are cross compiled, unlike mine. Anyway, I created a script that would download the svn posted on the server,&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/soliloquyforthefallen.net\/?p=20\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[117],"tags":[],"_links":{"self":[{"href":"https:\/\/soliloquyforthefallen.net\/index.php?rest_route=\/wp\/v2\/posts\/20"}],"collection":[{"href":"https:\/\/soliloquyforthefallen.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soliloquyforthefallen.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soliloquyforthefallen.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/soliloquyforthefallen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20"}],"version-history":[{"count":2,"href":"https:\/\/soliloquyforthefallen.net\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":985,"href":"https:\/\/soliloquyforthefallen.net\/index.php?rest_route=\/wp\/v2\/posts\/20\/revisions\/985"}],"wp:attachment":[{"href":"https:\/\/soliloquyforthefallen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soliloquyforthefallen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soliloquyforthefallen.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}