Skip to content

Commit ea873ee

Browse files
committed
fucking around with my frameworks again, dwai
1 parent c6b4e85 commit ea873ee

File tree

3 files changed

+38
-19
lines changed

3 files changed

+38
-19
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
env:
1818
INTERNAL_NAME: PositionalGuide
19-
CONFIGURATION: Release
19+
CONFIGURATION: release
2020
DOTNET_CLI_TELEMETRY_OPTOUT: true
2121
DOTNET_NOLOGO: true
2222

@@ -71,7 +71,7 @@ jobs:
7171
uses: actions/upload-artifact@v4
7272
with:
7373
name: PluginRepoZip
74-
path: ${{ env.INTERNAL_NAME }}/bin/${{ env.CONFIGURATION }}/${{ env.INTERNAL_NAME }}
74+
path: ${{ env.INTERNAL_NAME }}/bin/${{ env.CONFIGURATION }}/portable/${{ env.INTERNAL_NAME }}
7575
if-no-files-found: error
7676
retention-days: 14
7777
- name: Tag

.github/workflows/pr-test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

1717
env:
1818
INTERNAL_NAME: PositionalGuide
19-
CONFIGURATION: Release
19+
CONFIGURATION: release
2020
DOTNET_CLI_TELEMETRY_OPTOUT: true
2121
DOTNET_NOLOGO: true
2222

@@ -25,7 +25,7 @@ jobs:
2525
runs-on: windows-2022
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929
with:
3030
submodules: recursive
3131
- name: Setup MSBuild
@@ -39,9 +39,9 @@ jobs:
3939
- name: Build
4040
run: dotnet build -c ${{ env.CONFIGURATION }} --no-restore
4141
- name: Upload build
42-
uses: actions/upload-artifact@v3
42+
uses: actions/upload-artifact@v4
4343
with:
4444
name: PluginRepoZip
45-
path: ${{ env.INTERNAL_NAME }}/bin/${{ env.CONFIGURATION }}/${{ env.INTERNAL_NAME }}
45+
path: ${{ env.INTERNAL_NAME }}/bin/${{ env.CONFIGURATION }}/portable/${{ env.INTERNAL_NAME }}
4646
if-no-files-found: error
4747
retention-days: 14

PositionalGuide/framework.props

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<Product>NAME</Product>
77
<Version>MAJOR.MINOR.PATCH</Version>
88
<Description>SUMMARY</Description>
9-
<Description>SUMMARY</Description>
109
<OutputType>{Library|Exe}</OutputType>
1110
1211
- RECOMMENDED
@@ -23,13 +22,16 @@
2322
<Deterministic>(DEPENDENT ON OUTPUT TYPE)</Deterministic>
2423
<CopyLocalLockFileAssemblies>(DEPENDENT ON OUTPUT TYPE)</CopyLocalLockFileAssemblies>
2524
<ProduceReferenceAssembly>(DEPENDENT ON OUTPUT TYPE)</ProduceReferenceAssembly>
25+
<PublishDir>bin\publish\$(RuntimeIdentifier)-$(Configuration.ToLower())\</PublishDir>
2626
2727
- STATIC OVERRIDABLE:
2828
<Platforms>x64</Platforms>
2929
<PlatformTarget>x64</PlatformTarget>
30-
<TargetFramework>net7</TargetFramework>
30+
<TargetFramework>net9</TargetFramework>
31+
<PublishSingleFile>true</PublishSingleFile>
3132
3233
- SPECIAL:
34+
<OutputPath>bin\$(Configuration.ToLower())\$(RuntimeIdentifier.ToLower() || "portable")</OutputPath>
3335
<Authors>VariableVixen[, $(Authors)]</Authors>
3436
<ContinuousIntegrationBuild>(AUTOMATICALLY ENABLED ON KNOWN CI SYSTEMS)</ContinuousIntegrationBuild>
3537
<DebugSymbols>(DEPENDENT ON BUILD CONFIGURATION)</DebugSymbols>
@@ -42,7 +44,7 @@
4244

4345
<PropertyGroup Condition=" '$(Product)' != '' ">
4446
<AssemblyName Condition=" '$(AssemblyName)' == '' ">$(Product.Replace("-", "."))</AssemblyName>
45-
<PackageId Condition=" '$(PackageId)' == '' ">$(Product.Replace("-", "."))</PackageId>
47+
<PackageId Condition=" '$(PackageId)' == '' ">$(Product.Replace("-", ".").Replace(" ", ""))</PackageId>
4648
<Title Condition=" '$(Title)' == '' ">$(Product)</Title>
4749
<PackageProjectUrl Condition=" '$(PackageProjectUrl)' == '' ">https://github.com/PrincessRTFM/$(Product)</PackageProjectUrl>
4850
</PropertyGroup>
@@ -55,7 +57,7 @@
5557
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
5658
<LangVersion>12</LangVersion>
5759
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
58-
<OutputPath>bin\$(Configuration)\</OutputPath>
60+
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
5961
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
6062
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
6163
<PublishRelease>true</PublishRelease>
@@ -66,32 +68,50 @@
6668
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
6769
<ImplicitUsings>false</ImplicitUsings>
6870
<NoWarn>CA1805,CA1852,CA1707,$(NoWarn)</NoWarn>
71+
<PathMap>$(SolutionDir)=./</PathMap>
6972
</PropertyGroup>
7073

7174
<Choose>
72-
<When Condition=" '$(Authors)' == '' ">
75+
<When Condition=" '$(RuntimeIdentifier)' == '' ">
7376
<PropertyGroup>
74-
<Authors>VariableVixen</Authors>
77+
<OutputPath>bin\$(Configuration.ToLower())\portable</OutputPath>
7578
</PropertyGroup>
7679
</When>
77-
<When Condition=" ! $([System.Text.RegularExpressions.Regex]::IsMatch($(Authors.ToLower()), '\bvariablevixen\b')) ">
80+
<Otherwise>
7881
<PropertyGroup>
79-
<Authors>VariableVixen, $(Authors)</Authors>
82+
<OutputPath>bin\$(Configuration.ToLower())\$(RuntimeIdentifier.ToLower())</OutputPath>
8083
</PropertyGroup>
81-
</When>
84+
</Otherwise>
8285
</Choose>
8386

8487
<PropertyGroup>
88+
<PublishSingleFile Condition=" '$(PublishSingleFile)' == '' ">true</PublishSingleFile>
8589
<Copyright Condition=" '$(Copyright)' == '' ">Copyleft $(Authors)</Copyright>
8690
<RepositoryUrl Condition=" '$(RepositoryUrl)' == '' ">$(PackageProjectUrl).git</RepositoryUrl>
8791
<Platforms Condition=" '$(Platforms)' == '' ">x64</Platforms>
8892
<PlatformTarget Condition=" '$(PlatformTarget)' == '' ">x64</PlatformTarget>
89-
<TargetFramework Condition=" '$(TargetFramework)' == '' ">net7</TargetFramework>
93+
<TargetFramework Condition=" '$(TargetFramework)' == '' ">net9</TargetFramework>
9094
<AssemblyVersion Condition=" '$(AssemblyVersion)' == '' ">$(Version)</AssemblyVersion>
9195
<AssemblyFileVersion Condition=" '$(AssemblyFileVersion)' == '' ">$(AssemblyVersion)</AssemblyFileVersion>
92-
<PathMap>$(SolutionDir)=./</PathMap>
9396
</PropertyGroup>
9497

98+
<PropertyGroup Condition=" '$(PublishDir)' == '' ">
99+
<PublishDir>bin\publish\$(RuntimeIdentifier)-$(Configuration.ToLower())\</PublishDir>
100+
</PropertyGroup>
101+
102+
<Choose>
103+
<When Condition=" '$(Authors)' == '' ">
104+
<PropertyGroup>
105+
<Authors>VariableVixen</Authors>
106+
</PropertyGroup>
107+
</When>
108+
<When Condition=" ! $([System.Text.RegularExpressions.Regex]::IsMatch($(Authors.ToLower()), '\bvariablevixen\b')) ">
109+
<PropertyGroup>
110+
<Authors>VariableVixen, $(Authors)</Authors>
111+
</PropertyGroup>
112+
</When>
113+
</Choose>
114+
95115
<Choose>
96116
<When Condition=" '$(OutputType.ToLower())' == 'library' ">
97117
<PropertyGroup>
@@ -109,8 +129,7 @@
109129
</Otherwise>
110130
</Choose>
111131

112-
<PropertyGroup>
113-
<!-- this is non-exhaustive, but includes the CI systems I'm aware of and will be updated as I discover more -->
132+
<PropertyGroup><!-- this is non-exhaustive, but includes the CI systems I'm aware of and will be updated as I discover more -->
114133
<ContinuousIntegrationBuild Condition=" '$(GITHUB_ACTIONS)' == 'true' ">true</ContinuousIntegrationBuild>
115134
<ContinuousIntegrationBuild Condition=" '$(TF_BUILD)' == 'true' ">true</ContinuousIntegrationBuild>
116135
</PropertyGroup>

0 commit comments

Comments
 (0)