Skip to content

Commit b5bd868

Browse files
author
Borja Fernández Gauna
committed
#184 Removed extension part from bundler output filename
1 parent f65ae4f commit b5bd868

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

installers/SimionZooBundler/Program.cs

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,17 @@ public static void Main(string [] args)
3232
if (lowerCaseArg == "-only-windows")
3333
{
3434
includeLinuxFiles = false;
35-
osName = "win-";
35+
osName = "-win";
3636
}
3737
else if (lowerCaseArg == "-only-linux")
3838
{
3939
includeWindowsFiles = false;
40-
osName = "linux-";
40+
osName = "-linux";
4141
}
4242
}
4343
List<string> files= new List<string>();
44-
string version;
45-
46-
version = GetVersion(inBaseRelPath + @"bin/Badger.exe");
47-
outBaseFolder = @"SimionZoo-" + version + @"/";
44+
45+
outBaseFolder = @"SimionZoo/";
4846

4947
//Herd Agent
5048
//windows:
@@ -137,19 +135,13 @@ public static void Main(string [] args)
137135
}
138136

139137

140-
string outputFile = inBaseRelPath + @"SimionZoo-" + osName + version + ".zip";
138+
string outputFile = inBaseRelPath + @"SimionZoo" + osName + ".zip";
141139

142140
Console.WriteLine("Compressing {0} files", files.Count);
143141
Compress(outputFile, files);
144142
Console.WriteLine("Finished");
145143
}
146144

147-
public static string GetVersion(string file)
148-
{
149-
System.Version version = Assembly.GetExecutingAssembly().GetName().Version;
150-
return version.Major + "." + version.Minor + "." + version.Build;
151-
}
152-
153145
public static void GetDependencies(string inFolder, string module, ref List<string> dependencyList, bool bRecursive= true)
154146
{
155147
string depName, modName;

0 commit comments

Comments
 (0)