-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove json11 sub * Remove toml11 * Update build extension sample * Create the wix installer * Add release docs * Update docs and bump version
- Loading branch information
Showing
40 changed files
with
292 additions
and
71 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 |
---|---|---|
|
@@ -2,8 +2,13 @@ | |
.vs/ | ||
*.user | ||
.vscode/ipch/ | ||
packages/ | ||
|
||
# Build | ||
out/ | ||
bin/ | ||
obj/ | ||
obj/ | ||
|
||
# Wix | ||
msi/ | ||
wix/ |
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
Submodule Json11
deleted from
e5e56f
Submodule toml11
deleted from
d5ebcd
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,30 @@ | ||
# Create Release | ||
|
||
## Bump Client version | ||
Ensure that the client build number is updated in recipe.toml, VersionCommand.h and in the Script.cs. | ||
|
||
Create a PR with this change. | ||
|
||
## Build Client | ||
Build the release client executable | ||
``` | ||
build release | ||
``` | ||
|
||
## Create the release artifacts | ||
Zip up the contents of the bin folder into Soup.zip | ||
|
||
[Soup]\Source\Client\CLI\out\bin\MSVC\release\win32\x64\ | ||
|
||
|
||
## Build the Installer | ||
Open [Soup]\Source\Installer\Installer.sln in Visual Studio 2019 | ||
|
||
Rebuild solution | ||
|
||
## Create a GitHub Release | ||
Tag the new release | ||
* title: "Soup 0.\*.\* (Alpha)" | ||
* tag: "v0.\*.\*-alpha | ||
|
||
Upload the Soup.zip and Soup.msi files. |
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 |
---|---|---|
|
@@ -10,7 +10,7 @@ Name = "SimpleBuildExtension" | |
Type = "DynamicLibrary" | ||
Version = "1.0.0" | ||
Dependencies = [ | ||
"[email protected].2", | ||
"[email protected].3", | ||
"[email protected]", | ||
"[email protected]", | ||
] | ||
|
@@ -44,23 +44,23 @@ namespace SimpleBuildExtension | |
/// <summary> | ||
/// Get the run before list | ||
/// </summary> | ||
Soup::Build::IList<const char*>& GetRunBeforeList() noexcept override final | ||
const Soup::Build::IReadOnlyList<const char*>& GetRunBeforeList() const noexcept override final | ||
{ | ||
return _runBeforeList; | ||
} | ||
/// <summary> | ||
/// Get the run after list | ||
/// </summary> | ||
Soup::Build::IList<const char*>& GetRunAfterList() noexcept override final | ||
const Soup::Build::IReadOnlyList<const char*>& GetRunAfterList() const noexcept override final | ||
{ | ||
return _runAfterList; | ||
} | ||
/// <summary> | ||
/// The Core Execute task | ||
/// </summary> | ||
Soup::Build::ApiCallResult Execute( | ||
Soup::Build::ApiCallResult TryExecute( | ||
Soup::Build::IBuildState& buildState) noexcept override final | ||
{ | ||
auto buildStateWrapper = Soup::Build::Utilities::BuildStateWrapper(buildState); | ||
|
@@ -70,12 +70,12 @@ namespace SimpleBuildExtension | |
// We cannot throw accross the DLL boundary for a build extension | ||
// So all internal errors must be converted to error codes | ||
Execute(buildStateWrapper); | ||
return 0; | ||
return Soup::Build::ApiCallResult::Success; | ||
} | ||
catch(...) | ||
{ | ||
buildStateWrapper.LogError("Unknown Error!"); | ||
return -1; | ||
return Soup::Build::ApiCallResult::Error; | ||
} | ||
} | ||
|
@@ -126,23 +126,23 @@ namespace SimpleBuildExtension | |
/// <summary> | ||
/// Get the run before list | ||
/// </summary> | ||
Soup::Build::IList<const char*>& GetRunBeforeList() noexcept override final | ||
const Soup::Build::IReadOnlyList<const char*>& GetRunBeforeList() const noexcept override final | ||
{ | ||
return _runBeforeList; | ||
} | ||
/// <summary> | ||
/// Get the run after list | ||
/// </summary> | ||
Soup::Build::IList<const char*>& GetRunAfterList() noexcept override final | ||
const Soup::Build::IReadOnlyList<const char*>& GetRunAfterList() const noexcept override final | ||
{ | ||
return _runAfterList; | ||
} | ||
/// <summary> | ||
/// The Core Execute task | ||
/// </summary> | ||
Soup::Build::ApiCallResult Execute( | ||
Soup::Build::ApiCallResult TryExecute( | ||
Soup::Build::IBuildState& buildState) noexcept override final | ||
{ | ||
auto buildStateWrapper = Soup::Build::Utilities::BuildStateWrapper(buildState); | ||
|
@@ -152,12 +152,12 @@ namespace SimpleBuildExtension | |
// We cannot throw accross the DLL boundary for a build extension | ||
// So all internal errors must be converted to error codes | ||
Execute(buildStateWrapper); | ||
return 0; | ||
return Soup::Build::ApiCallResult::Success; | ||
} | ||
catch(...) | ||
{ | ||
buildStateWrapper.LogError("Unknown Error!"); | ||
return -1; | ||
return Soup::Build::ApiCallResult::Error; | ||
} | ||
} | ||
|
@@ -205,20 +205,22 @@ import Soup.Build.Utilities; | |
#include "AfterBuildTask.h" | ||
#include "BeforeBuildTask.h" | ||
#define DllExport __declspec( dllexport ) | ||
#define DllExport __declspec(dllexport) | ||
extern "C" | ||
{ | ||
DllExport int RegisterBuildExtension(Soup::Build::IBuildSystem& buildSystem) | ||
{ | ||
// Register the before build task | ||
auto beforeBuildtask = Opal::Memory::Reference<SimpleBuildExtension::BeforeBuildTask>( | ||
new SimpleBuildExtension::BeforeBuildTask()); | ||
buildSystem.RegisterTask(beforeBuildtask.GetRaw()); | ||
if (buildSystem.TryRegisterTask(beforeBuildtask.GetRaw()) != Soup::Build::ApiCallResult::Success) | ||
return -1; | ||
// Register the after build task | ||
auto afterBuildtask = Opal::Memory::Reference<SimpleBuildExtension::AfterBuildTask>( | ||
new SimpleBuildExtension::AfterBuildTask()); | ||
buildSystem.RegisterTask(afterBuildtask.GetRaw()); | ||
if (buildSystem.TryRegisterTask(afterBuildtask.GetRaw()) != Soup::Build::ApiCallResult::Success) | ||
return -1; | ||
return 0; | ||
} | ||
|
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
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ Name = "SimpleBuildExtension" | |
Type = "DynamicLibrary" | ||
Version = "1.0.0" | ||
Dependencies = [ | ||
"[email protected].2", | ||
"[email protected].3", | ||
"[email protected]", | ||
"[email protected]", | ||
] | ||
|
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,6 @@ | ||
SET ScriptsDir=%~dp0 | ||
SET SourceDir=%ScriptsDir%..\Source | ||
SET InstallerDir=%SourceDir%\Installer\SoupInstaller\msi | ||
pushd %InstallerDir% | ||
start msiexec /package Soup.msi /passive | ||
popd |
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,6 @@ | ||
SET ScriptsDir=%~dp0 | ||
SET SourceDir=%ScriptsDir%..\Source | ||
SET InstallerDir=%SourceDir%\Installer\SoupInstaller\msi | ||
pushd %InstallerDir% | ||
start msiexec /uninstall Soup.msi | ||
popd |
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 |
---|---|---|
|
@@ -4,8 +4,7 @@ the stable Binary Interface layer between the Build Evaluation | |
engine and the Extensions.""" | ||
Version = "0.3.0" | ||
Dependencies = [ | ||
"../../../Dependencies/Opal/Source/", | ||
# "[email protected]", | ||
"[email protected]", | ||
] | ||
|
||
Public = "Module.cpp" |
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 |
---|---|---|
|
@@ -7,8 +7,7 @@ Dependencies = [ | |
# "[email protected]", | ||
"../Utilities/", | ||
# "[email protected]", | ||
"../../../Dependencies/Opal/Source/", | ||
# "[email protected]", | ||
"[email protected]", | ||
] | ||
|
||
Public = "Module.cpp" | ||
|
Oops, something went wrong.