Skip to content

Commit

Permalink
Merge pull request #78 from ansani/1-remove-support-for-tortoisesvn-a…
Browse files Browse the repository at this point in the history
…nd-link-the-new-repo

Remove support for tortoisesvn and link the new repo
  • Loading branch information
ansani authored Dec 27, 2022
2 parents 7ac6cb5 + 035e78f commit e70a224
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 67 deletions.
13 changes: 12 additions & 1 deletion .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ jobs:
steps:
- name: Checkout GIT sources
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9.7
with:
versionSpec: '5.x'

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
Expand All @@ -34,11 +41,15 @@ jobs:
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0.9.7

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild ${{env.SOLUTION_FILE_PATH}} /nologo /v:m /t:Rebuild /p:ForceImportBeforeCppTargets=${{env.RELEASEBUILD_FILE_PATH}} /p:Configuration=${{ matrix.type }} /p:Platform=${{ matrix.platform }} /fl /flp:Summary
run: msbuild ${{env.SOLUTION_FILE_PATH}} /nologo /v:m /t:Rebuild /p:ForceImportBeforeCppTargets=${{env.RELEASEBUILD_FILE_PATH}} /p:Configuration=${{ matrix.type }} /p:Platform=${{ matrix.platform }} /p:DefineConstants=BUILDFROMMSBUILD /p:RevisionSHA=${{ steps.gitversion.outputs.ShortSha }} /p:RevisionDate=${{ steps.gitversion.outputs.commitDate }} /fl /flp:Summary

- name: Archive Shareaza Release
uses: actions/upload-artifact@v3
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,6 @@ pip-log.txt
/plugins/GFLImageServices/GFLImageServices.h
/plugins/DocumentReader/DocumentReader.h
/plugins/7ZipBuilder/7ZipBuilder.h
/shareaza/revision.h

/setup/builds

/shareaza/ShareazaOM.h
Expand Down Expand Up @@ -294,8 +292,6 @@ pip-log.txt
/plugins/7ZipBuilder/Shareaza.h
/plugins/7ZipBuilder/7ZipBuilder.h
/shareaza/ShareazaOM.h

/shareaza/revision.h
/plugins/7ZipBuilder/7ZipBuilder.h
/plugins/7ZipBuilder/Shareaza.h
/plugins/DocumentReader/DocumentReader.h
Expand Down
2 changes: 1 addition & 1 deletion shareaza/Shareaza.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ void CShareazaApp::InitResources()
#ifdef LAN_MODE
_T(" LAN")
#endif
_T(" (r") _T(__REVISION__) _T("i ") + m_sBuildDate + _T(")");
_T(" (commit ") STRINGIZE(__REVISION__) _T(" of ") STRINGIZE(__REVISION_DATE__) _T(")");

BT_SetAppVersion( m_sVersionLong );

Expand Down
35 changes: 26 additions & 9 deletions shareaza/Shareaza_143.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<PreBuildEvent>
<Message>Pre-Building...</Message>
<Command>cscript.exe //E:jscript //nologo revision.js</Command>
<Message>
</Message>
<Command>
</Command>
</PreBuildEvent>
<Midl>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -156,8 +158,10 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PreBuildEvent>
<Message>Pre-Building...</Message>
<Command>cscript.exe //E:jscript //nologo revision.js</Command>
<Message>
</Message>
<Command>
</Command>
</PreBuildEvent>
<Midl>
<PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -208,8 +212,10 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<PreBuildEvent>
<Message>Pre-Building...</Message>
<Command>cscript.exe //E:jscript //nologo revision.js</Command>
<Message>
</Message>
<Command>
</Command>
</PreBuildEvent>
<Midl>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -264,8 +270,10 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<PreBuildEvent>
<Message>Pre-Building...</Message>
<Command>cscript.exe //E:jscript //nologo revision.js</Command>
<Message>
</Message>
<Command>
</Command>
</PreBuildEvent>
<Midl>
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
Expand Down Expand Up @@ -317,6 +325,16 @@
<EnableDpiAwareness>false</EnableDpiAwareness>
</Manifest>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(RevisionSHA)' != ''">
<ClCompile>
<AdditionalOptions>/DRevisionSHA=$(RevisionSHA) %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(RevisionDate)' != ''">
<ClCompile>
<AdditionalOptions>/DRevisionDate=$(RevisionDate) %(AdditionalOptions)</AdditionalOptions>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="AlbumFolder.cpp" />
<ClCompile Include="AntiVirus.cpp" />
Expand Down Expand Up @@ -1334,7 +1352,6 @@
<None Include="Res\Wizard.png" />
<None Include="Res\WizardDot.ico" />
<None Include="Res\World.ico" />
<None Include="revision.js" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\bzlib\bzlib_143.vcxproj">
Expand Down
1 change: 0 additions & 1 deletion shareaza/Shareaza_143.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -2699,7 +2699,6 @@
<None Include="Res\World.ico">
<Filter>Resource Files</Filter>
</None>
<None Include="revision.js" />
<None Include="Res\in.ico">
<Filter>Resource Files</Filter>
</None>
Expand Down
16 changes: 16 additions & 0 deletions shareaza/revision.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#pragma once

#define STRINGIZE2(x) #x
#define STRINGIZE(x) STRINGIZE2(x)

#ifndef RevisionSHA
#define __REVISION__ "BUILT MANUALLY"
#else
#define __REVISION__ RevisionSHA
#endif

#ifndef RevisionDate
#define __REVISION_DATE__ "NOT AVAILABLE"
#else
#define __REVISION_DATE__ RevisionDate
#endif
51 changes: 0 additions & 51 deletions shareaza/revision.js

This file was deleted.

0 comments on commit e70a224

Please sign in to comment.