One-click deploy from Windows to Setup.exe,, Linux.tgz, etc.

I realize that @harry-cpp is working on an official deployment tool, but in the meantime I’m trying to deploy on the three platforms. I got really tired of all the work that goes into it, so I decided to try my hand at automating it.

Now you don’t actually need an OSX or Linux box to deploy from Windows to those platforms. With the, the end user gets a .tgz that they extract and then they can copy the icon into their Application folder.

Linux users get a .tgz that they can just extract and run, the permissions automatically get set to executable.

For Windows, I integrated this with Inno Setup so that you can distribute an executable installer file for making an icon in the start menu and desktop. I also have it spit out a portable .zip of the Release folder so that people who don’t have admin privileges on their box can still run it.

I’ll also add SFTP support at some point.

When you want to deploy a new build, all you have to do is increment the version number in your .NET assembly, then load up your saved deploy tool file and hit deploy and now you’re good to go. You could easily do nightly builds with this tool.

I went ahead and added a tutorial here:

Getting Started

1 Like

For me , the library
is missing from appdata.

So when I start deploying it gets through everything fine but it stops at line 448

            var fileDump = File.ReadAllText(libPath + "\\Setup.iss");

with the error:

An unhandled exception of type ‘System.IO.FileNotFoundException’ occurred in mscorlib.dll

Additional information: Could not find file ‘C:\Users\Jimmy\AppData\Roaming\Ruge Deploy Tool\lib\Setup.iss’.

i tried making a new folder and naming it Ruge Deploy Tool and lib inside it but that still didn’t work


Well I solved that by copying and pasting the setup.iss from MonoGame.Ruge.DeployTool-master/lib into AppData/Roaming/Ruge Deploy Tool/lib

But now the console for the program is just stuck at:

Generating Inno Setup Script…
Generating Windows Setup EXE…

Generating Windows Portable Deploy…
Creating Zip File…C:\Users\Jimmy\Documents\Visual Studio 2015\Projects\Game8\Deploy\
Deleting Temp Folder…OK

And it won’t do anything.

And if it’s finished, well then is empty.

Yeah, like I said, I still need to write up instructions. Maybe I can work on that now. :slight_smile:

1 Like

I’d love it. It’s great that you’re working on this :slightly_smiling: you have my respect.

1 Like

Aww thanks, I went ahead and wrote up instructions for how to use the program:

Getting Started

Wow it worked! Thank you so much! You’re praised

1 Like

You’re welcome :smiley: glad it worked for you!

1 Like