Skip to content

Commit

Permalink
- fix for missing apps
Browse files Browse the repository at this point in the history
  • Loading branch information
cozy1 committed Jan 29, 2019
1 parent 27063a4 commit 27dec27
Show file tree
Hide file tree
Showing 55 changed files with 63 additions and 58 deletions.
3 changes: 0 additions & 3 deletions RocksmithTookitGUI/MainForm.cs
Expand Up @@ -37,9 +37,6 @@ public MainForm(string[] args)
if (GeneralExtensions.IsInDesignMode) if (GeneralExtensions.IsInDesignMode)
btnDevTestMethod.Visible = true; btnDevTestMethod.Visible = true;


// verify external apps in 'tools' and 'ddc' directory
ExternalApps.VerifyExternalApps();

InitMainForm(); InitMainForm();
} }


Expand Down
3 changes: 3 additions & 0 deletions RocksmithTookitGUI/Program.cs
Expand Up @@ -26,6 +26,9 @@ static void Main(string[] args)
// TODO: figure out way for native mac\linux OS // TODO: figure out way for native mac\linux OS
var logPath = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "_RSToolkit_" + DateTime.Now.ToString("yyyy-MM-dd") + ".log"); var logPath = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "_RSToolkit_" + DateTime.Now.ToString("yyyy-MM-dd") + ".log");


// verify external apps in 'tools' and 'ddc' directory
ExternalApps.VerifyExternalApps(); // throws necessary exception if missing

// workaround fix for Win10 NET4.6 compatiblity issue // workaround fix for Win10 NET4.6 compatiblity issue
var updaterVersion = "Null"; var updaterVersion = "Null";
try try
Expand Down
2 changes: 1 addition & 1 deletion RocksmithTookitGUI/Properties/AssemblyInfo.cs
Expand Up @@ -29,5 +29,5 @@
// //
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT // THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")] [assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("71de56d6")] [assembly: AssemblyInformationalVersion("27063a46")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
3 changes: 2 additions & 1 deletion RocksmithTookitGUI/ReleaseNotes.txt
@@ -1,6 +1,7 @@
Rocksmith Toolkit Release Notes Rocksmith Toolkit Release Notes


- add App.config file (fixes some Win10 errors) - improved verification of external apps
- added app.config file (may avoid some errors)
- fixed Auto Updater to work with new file directory structure and improved function - fixed Auto Updater to work with new file directory structure and improved function
- set "Auto Update" to true in GeneralConfig as default and force use of latest build - set "Auto Update" to true in GeneralConfig as default and force use of latest build
- added 'assemblyPath' enumeration to Auto Update feature - added 'assemblyPath' enumeration to Auto Update feature
Expand Down
2 changes: 1 addition & 1 deletion RocksmithTookitGUI/RocksmithToolkitGUI.csproj
Expand Up @@ -441,7 +441,7 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PreBuildEvent>REM copy support files <PreBuildEvent>REM copy support files
xcopy /S /Y "$(SolutionDir)Third-party Apps"</PreBuildEvent> xcopy /E /S /Y "$(SolutionDir)ThirdPartyApps\*.*" "$(TargetDir)*.*"</PreBuildEvent>
<!-- be sure to address all build types in the PostBuildEvent --> <!-- be sure to address all build types in the PostBuildEvent -->
<PostBuildEvent Condition=" '$(OS)' != 'Unix' "> <PostBuildEvent Condition=" '$(OS)' != 'Unix' ">
xcopy /S /Y "$(SolutionDir)Third-party Apps" xcopy /S /Y "$(SolutionDir)Third-party Apps"
Expand Down
10 changes: 2 additions & 8 deletions RocksmithToolkitCLI/convert2012/convert2012.csproj
Expand Up @@ -83,14 +83,8 @@
</PostBuildEvent> </PostBuildEvent>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>xcopy /S /Y "$(SolutionDir)Third-party Apps\Wwise\*" "$(TargetDir)Wwise\*" <PostBuildEvent>REM copy support files
xcopy /S /Y "$(SolutionDir)Third-party Apps\ogg*.*" "$(TargetDir)" xcopy /E /S /Y "$(SolutionDir)ThirdPartyApps\*.*" "$(TargetDir)*.*"</PostBuildEvent>
xcopy /S /Y "$(SolutionDir)Third-party Apps\nvdxt.exe" "$(TargetDir)"
xcopy /S /Y "$(SolutionDir)Third-party Apps\packed_codebook*.*" "$(TargetDir)"
xcopy /S /Y "$(SolutionDir)Third-party Apps\revorb.exe" "$(TargetDir)"
xcopy /S /Y "$(SolutionDir)Third-party Apps\ww2ogg.exe" "$(TargetDir)"
xcopy /S /Y "$(SolutionDir)Third-party Apps\*.xml" "$(TargetDir)"
rd /s /q "$(TargetDir)ddc"</PostBuildEvent>
</PropertyGroup> </PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
8 changes: 4 additions & 4 deletions RocksmithToolkitGUI.Tests/RocksmithToolkitGUI.Tests.csproj
Expand Up @@ -59,12 +59,12 @@
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PreBuildEvent> <PreBuildEvent>REM copy support files
</PreBuildEvent> xcopy /E /S /Y "$(SolutionDir)ThirdPartyApps\*.*" "$(TargetDir)*.*"</PreBuildEvent>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>REM copy support files <PostBuildEvent>
xcopy /S /Y "$(SolutionDir)Third-party Apps" "$(TargetDir)"</PostBuildEvent> </PostBuildEvent>
</PropertyGroup> </PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
8 changes: 4 additions & 4 deletions RocksmithToolkitLib.Tests/RocksmithToolkitLib.Tests.csproj
Expand Up @@ -76,12 +76,12 @@
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>REM copy support files <PostBuildEvent>
xcopy /S /Y "$(SolutionDir)Third-party Apps" "$(TargetDir)"</PostBuildEvent> </PostBuildEvent>
</PropertyGroup> </PropertyGroup>
<PropertyGroup> <PropertyGroup>
<PreBuildEvent> <PreBuildEvent>REM copy support files
</PreBuildEvent> xcopy /E /S /Y "$(SolutionDir)ThirdPartyApps\*.*" "$(TargetDir)*.*"</PreBuildEvent>
</PropertyGroup> </PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
63 changes: 35 additions & 28 deletions RocksmithToolkitLib/Extensions/ExternalApps.cs
Expand Up @@ -27,47 +27,54 @@ public static class ExternalApps


public static bool VerifyExternalApps() public static bool VerifyExternalApps()
{ {
var errMsg = new StringBuilder(); try
{
var errMsg = new StringBuilder();


// Verifying third party apps exist where toolkit expects to find them // Verifying third party apps exist where toolkit expects to find them
if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_TOPNG))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_TOPNG)))
errMsg.AppendLine(APP_TOPNG); errMsg.AppendLine(APP_TOPNG);


if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_7Z))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_7Z)))
errMsg.AppendLine(APP_7Z); errMsg.AppendLine(APP_7Z);


if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_NVDXT))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_NVDXT)))
errMsg.AppendLine(APP_NVDXT); errMsg.AppendLine(APP_NVDXT);


if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_OGGDEC))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_OGGDEC)))
errMsg.AppendLine(APP_OGGDEC); errMsg.AppendLine(APP_OGGDEC);


if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_OGGCUT))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_OGGCUT)))
errMsg.AppendLine(APP_OGGCUT); errMsg.AppendLine(APP_OGGCUT);


if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_OGGENC))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_OGGENC)))
errMsg.AppendLine(APP_OGGENC); errMsg.AppendLine(APP_OGGENC);


if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_COREJAR))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_COREJAR)))
errMsg.AppendLine(APP_COREJAR); errMsg.AppendLine(APP_COREJAR);


if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_WW2OGG))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_WW2OGG)))
errMsg.AppendLine(APP_WW2OGG); errMsg.AppendLine(APP_WW2OGG);


if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_REVORB))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_REVORB)))
errMsg.AppendLine(APP_REVORB); errMsg.AppendLine(APP_REVORB);


if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_CODEBOOKS))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_CODEBOOKS)))
errMsg.AppendLine(APP_CODEBOOKS); errMsg.AppendLine(APP_CODEBOOKS);


if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_CODEBOOKS_603))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_CODEBOOKS_603)))
errMsg.AppendLine(APP_CODEBOOKS_603); errMsg.AppendLine(APP_CODEBOOKS_603);


if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_DDC))) if (!File.Exists(Path.Combine(TOOLKIT_ROOT, APP_DDC)))
errMsg.AppendLine(APP_DDC); errMsg.AppendLine(APP_DDC);


if (!String.IsNullOrEmpty(errMsg.ToString())) if (!String.IsNullOrEmpty(errMsg.ToString()))
throw new FileNotFoundException("<ERROR> Critical toolkit files not found:" + Environment.NewLine + errMsg.ToString()); throw new FileNotFoundException("<ERROR> Critical toolkit files not found:" + Environment.NewLine + errMsg.ToString());
}
catch (Exception ex)
{
throw new FileNotFoundException("<ERROR> Critical toolkit files not found:" + Environment.NewLine + ex.Message);
}


return true; return true;
} }
Expand Down
2 changes: 1 addition & 1 deletion RocksmithToolkitLib/Properties/AssemblyInfo.cs
Expand Up @@ -27,5 +27,5 @@
// //
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT // THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")] [assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("71de56d6")] [assembly: AssemblyInformationalVersion("27063a46")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
2 changes: 1 addition & 1 deletion RocksmithToolkitUpdater/Properties/AssemblyInfo.cs
Expand Up @@ -29,5 +29,5 @@
// //
// THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT // THESE VALUES ARE PROGRAMMATICALLY GENERATED - DO NOT EDIT
[assembly: AssemblyVersion("2.9.2.0")] [assembly: AssemblyVersion("2.9.2.0")]
[assembly: AssemblyInformationalVersion("71de56d6")] [assembly: AssemblyInformationalVersion("27063a46")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion VersionInfo.txt
@@ -1,3 +1,3 @@
2.9.2.0 2.9.2.0
71de56d6 27063a46


13 changes: 8 additions & 5 deletions appveyor.yml
Expand Up @@ -40,6 +40,7 @@ before_build:
# scripts to run after build # scripts to run after build
after_build: after_build:
- set BIN=%APPVEYOR_BUILD_FOLDER%\RocksmithTookitGUI\bin - set BIN=%APPVEYOR_BUILD_FOLDER%\RocksmithTookitGUI\bin
- set APPS=%APPVEYOR_BUILD_FOLDER%\RocksmithTookitGUI\ThirdPartyApps
- rem Code signing - rem Code signing
- ps: if ($env:cert_url) { Start-FileDownload $env:cert_url } - ps: if ($env:cert_url) { Start-FileDownload $env:cert_url }
- if defined cert_url signtool sign /v /f selfsigned2018.pfx /p "%cert_pass%" /t http://timestamp.verisign.com/scripts/timstamp.dll "%BIN%\Release\RocksmithToolkitGUI.exe" "%BIN%\Release\RocksmithToolkitUpdater.exe" "%BIN%\Release\RocksmithToolkitLib.dll" - if defined cert_url signtool sign /v /f selfsigned2018.pfx /p "%cert_pass%" /t http://timestamp.verisign.com/scripts/timstamp.dll "%BIN%\Release\RocksmithToolkitGUI.exe" "%BIN%\Release\RocksmithToolkitUpdater.exe" "%BIN%\Release\RocksmithToolkitLib.dll"
Expand All @@ -48,12 +49,14 @@ after_build:
- ps: $env:BuildCommit = $env:APPVEYOR_REPO_COMMIT.Substring(0, 8) - ps: $env:BuildCommit = $env:APPVEYOR_REPO_COMMIT.Substring(0, 8)
- ps: $env:PkgName = "rstoolkit-" + $env:BuildVer + "-" + $env:BuildCommit - ps: $env:PkgName = "rstoolkit-" + $env:BuildVer + "-" + $env:BuildCommit
- rem Windows package - rem Windows package
- rem ensure ThirdPartyApps are copied
- rem xcopy /E /S /Y "%APPS\*.*" "%BIN%\Release\*.*"
- mkdir "%BIN%\tmp" - mkdir "%BIN%\tmp"
- xcopy /S /Y "%BIN%\Release\*" "%BIN%\tmp\RocksmithToolkit\*" - xcopy /E /S /Y "%BIN%\Release\*.*" "%BIN%\tmp\RocksmithToolkit\*.*"
- copy /Y "%BIN%\Release\ReadMe.txt" "%BIN%\tmp\ReadMe.txt" - copy "%BIN%\Release\ReadMe.txt" "%BIN%\tmp\ReadMe.txt"
- copy /Y "%BIN%\Release\tools\CreateToolkitShortcut.exe" "%BIN%\tmp\CreateToolkitShortcut.exe" - copy "%BIN%\Release\tools\CreateToolkitShortcut.exe" "%BIN%\tmp\CreateToolkitShortcut.exe"
- del /Q "%BIN%\Release\ReadMe.txt" - del "%BIN%\Release\ReadMe.txt"
- del /Q "%BIN%\Release\tools\CreateToolkitShortcut.exe" - del "%BIN%\Release\tools\CreateToolkitShortcut.exe"
- 7z a %PkgName%-win.zip %BIN%\tmp\* - 7z a %PkgName%-win.zip %BIN%\tmp\*
- rem Mac package - rem Mac package
- del "%BIN%\RocksmithCustomSongToolkit.app\Contents\Resources\gitkeep.txt" - del "%BIN%\RocksmithCustomSongToolkit.app\Contents\Resources\gitkeep.txt"
Expand Down

0 comments on commit 27dec27

Please sign in to comment.