forked from Revolutionary-Games/Thrive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created packaging script. Probably doesn't work on Windows yet
as that isn't tested
- Loading branch information
1 parent
3747ad7
commit b9e1063
Showing
10 changed files
with
70 additions
and
360 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ assets/* | |
/Fonts | ||
/Textures | ||
/JSVendor | ||
/Videos | ||
|
||
|
||
# ue4 stuff | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/usr/bin/env ruby | ||
# Creates release packages for Thrive. | ||
# You MUST compile thrive in RelWithDebInfo with release cmake options before running this | ||
require 'os' | ||
|
||
if OS.mac? | ||
onError "unsupported platform" | ||
end | ||
|
||
require_relative 'RubySetupSystem/ReleaseCreator' | ||
|
||
|
||
# Customize options for Thrive | ||
VERSION = File.read("src/thrive_version.h").match(/Thrive_VERSIONS\s+"(.*)"/).captures[0] | ||
|
||
if !VERSION | ||
onError "Failed to detect version from 'thrive_version.h'" | ||
end | ||
|
||
# Create a readme file | ||
readmeText = "This is Thrive release #{VERSION} for " | ||
|
||
if OS.windows? | ||
readmeText += "Windows\n\n" | ||
|
||
readmeText += "To run the game run 'bin/Thrive.exe'." | ||
elsif OS.linux? | ||
readmeText += "Linux\n\n" | ||
|
||
readmeText += "To run the game run 'bin/Thrive' executable." | ||
else | ||
onError "unknown platform" | ||
end | ||
|
||
readmeText += "\n\nVisit http://revolutionarygamesstudio.com/ for more info" | ||
|
||
|
||
File.write File.join(CurrentDir, "README.TXT"), readmeText | ||
|
||
|
||
props = ReleaseProperties.new("Thrive-#{VERSION}") | ||
|
||
props.addExecutable "Thrive" | ||
props.addExecutable "ThriveServer" | ||
|
||
props.addFile File.join ProjectDir, "gpl.txt" | ||
props.addFile File.join ProjectDir, "LICENSE.txt" | ||
props.addFile File.join CurrentDir, "README.TXT" | ||
|
||
# Run the packaging | ||
runMakeRelease(props) |
Submodule RubySetupSystem
updated
3 files
+61 −58 | RedistributableLibsList.rb | |
+250 −0 | ReleaseCreator.rb | |
+8 −3 | RubyCommon.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.