Skip to content

Commit ac6af9d

Browse files
committed
feat: update localization strings, improve build configurations, and refine release workflow
1 parent 30993b6 commit ac6af9d

8 files changed

Lines changed: 45 additions & 172 deletions

File tree

.github/workflows/release.yml

Lines changed: 29 additions & 135 deletions
Large diffs are not rendered by default.

CopyPaste.UI/CopyPaste.UI.csproj

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
</PropertyGroup>
2424

2525
<!--
26-
Standalone (unpackaged) build configuration - DEFAULT.
27-
Used for GitHub Releases distribution with Inno Setup installer.
28-
Build with: dotnet build (no extra parameters needed)
26+
Standalone (unpackaged) build: dotnet build (default)
27+
Store (MSIX) build: dotnet build -p:PackageMode=Store
2928
-->
3029
<PropertyGroup Condition="'$(PackageMode)' != 'Store'">
3130
<ApplicationManifest>app.manifest</ApplicationManifest>
@@ -35,13 +34,6 @@
3534
<AppxPackage>false</AppxPackage>
3635
<EnableMsixTooling>false</EnableMsixTooling>
3736

38-
<!--
39-
Publishing optimizations for standalone (self-contained) builds:
40-
- ReadyToRun: Precompiles IL to native code (faster cold start)
41-
- ReadyToRunComposite: Better R2R optimization for self-contained apps
42-
- Trimming partial: Removes unused code but preserves reflection (required for XAML)
43-
Note: These require self-contained and are NOT compatible with MSIX/Store builds.
44-
-->
4537
<PublishReadyToRun>true</PublishReadyToRun>
4638
<PublishReadyToRunComposite>true</PublishReadyToRunComposite>
4739
<PublishTrimmed>true</PublishTrimmed>
@@ -51,11 +43,6 @@
5143
<SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings>
5244
</PropertyGroup>
5345

54-
<!--
55-
Microsoft Store (MSIX) build configuration.
56-
Used for Store distribution. Activated with: dotnet build -p:PackageMode=Store
57-
Identity values (Name, Publisher) are set via CI/CD secrets in release pipeline.
58-
-->
5946
<PropertyGroup Condition="'$(PackageMode)' == 'Store'">
6047
<WindowsPackageType>MSIX</WindowsPackageType>
6148
<WindowsAppSDKSelfContained>false</WindowsAppSDKSelfContained>
@@ -64,10 +51,6 @@
6451
<GenerateAppxPackageOnBuild>true</GenerateAppxPackageOnBuild>
6552
</PropertyGroup>
6653

67-
<!--
68-
Trimming configuration for third-party assemblies that don't support trimming.
69-
Only applies to standalone builds where PublishTrimmed=true.
70-
-->
7154
<ItemGroup Condition="'$(PackageMode)' != 'Store'">
7255
<TrimmerRootAssembly Include="Microsoft.Windows.SDK.NET" />
7356
<TrimmerRootAssembly Include="WinRT.Runtime" />
@@ -79,7 +62,7 @@
7962
<Manifest Include="$(ApplicationManifest)" Condition="'$(PackageMode)' != 'Store'" />
8063
</ItemGroup>
8164

82-
<!-- MSIX manifest included only for Store builds -->
65+
<!-- MSIX manifest only for Store builds -->
8366
<ItemGroup Condition="'$(PackageMode)' == 'Store'">
8467
<AppxManifest Include="Package.appxmanifest" />
8568
</ItemGroup>
@@ -109,12 +92,10 @@
10992
</ItemGroup>
11093

11194

112-
<!-- Copy PRI file to publish output (CRITICAL for XAML loading in Release) -->
11395
<Target Name="CopyPriToPublish" AfterTargets="Publish">
11496
<Copy SourceFiles="$(OutputPath)$(AssemblyName).pri" DestinationFolder="$(PublishDir)" SkipUnchangedFiles="true" />
11597
</Target>
11698

117-
<!-- Copy Assets folder to publish output -->
11899
<Target Name="CopyAssetsToPublish" AfterTargets="Publish">
119100
<ItemGroup>
120101
<AssetFiles Include="$(OutputPath)Assets\**\*" />

CopyPaste.UI/Localization/Languages/en-US.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"window": {
3030
"title": "Settings - CopyPaste",
3131
"heading": "Settings",
32-
"subtitle": "Changes are saved to MyM.json and require restart."
32+
"subtitle": "Changes require restarting the app to take effect."
3333
},
3434
"tabs": {
3535
"general": "General",
@@ -192,7 +192,7 @@
192192
"donateLabel": "Support the project",
193193
"donateDesc": "If you find CopyPaste useful, consider buying us a coffee",
194194
"donateButton": "Buy me a coffee",
195-
"license": "MIT License — Free and open source."
195+
"license": "GPL v3 License — Free and open source."
196196
}
197197
},
198198
"clipboard": {

CopyPaste.UI/Localization/Languages/es-CL.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"window": {
3030
"title": "Configuración - CopyPaste",
3131
"heading": "Configuración",
32-
"subtitle": "Los cambios se guardan en MyM.json y requieren reiniciar."
32+
"subtitle": "Los cambios requieren reiniciar la aplicación para aplicarse."
3333
},
3434
"tabs": {
3535
"general": "General",
@@ -192,7 +192,7 @@
192192
"donateLabel": "Apoya el proyecto",
193193
"donateDesc": "Si CopyPaste te resulta útil, considera invitarnos un café",
194194
"donateButton": "Invítame un café",
195-
"license": "Licencia MIT — Libre y de código abierto."
195+
"license": "Licencia GPL v3 — Libre y de código abierto."
196196
}
197197
},
198198
"clipboard": {

CopyPaste.UI/Shell/ConfigWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@
371371
<StackPanel Spacing="20" Margin="24,12,24,24">
372372
<!-- APP INFO -->
373373
<StackPanel HorizontalAlignment="Center" Spacing="8" Margin="0,16,0,8">
374-
<Image Source="/Assets/StoreLogo.png" Width="72" Height="72" HorizontalAlignment="Center"/>
374+
<Image Source="/Assets/Square150x150Logo.png" Width="72" Height="72" HorizontalAlignment="Center"/>
375375
<TextBlock Text="CopyPaste" FontSize="24" FontWeight="Bold" HorizontalAlignment="Center"/>
376376
<TextBlock x:Name="AboutVersionText" FontSize="12" Opacity="0.6" HorizontalAlignment="Center"/>
377377
</StackPanel>

CopyPaste.UI/Shell/ConfigWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private void ApplyLocalizedStrings()
258258
AboutDonateLabel.Text = L.Get("config.about.donateLabel", "Support the project");
259259
AboutDonateDesc.Text = L.Get("config.about.donateDesc", "If you find CopyPaste useful, consider buying us a coffee");
260260
AboutDonateButtonText.Text = L.Get("config.about.donateButton", "Buy me a coffee");
261-
AboutLicense.Text = L.Get("config.about.license", "MIT License — Free and open source.");
261+
AboutLicense.Text = L.Get("config.about.license", "GPL v3 License — Free and open source.");
262262

263263
// Buttons
264264
ResetButton.Content = L.Get("config.buttons.reset");

Directory.Build.props

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<Project>
22
<PropertyGroup>
3-
<!-- Code quality -->
3+
<Version>1.0.0</Version>
4+
<AssemblyVersion>1.0.0.0</AssemblyVersion>
5+
<FileVersion>1.0.0.0</FileVersion>
6+
47
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
58
<AnalysisLevel>latest-all</AnalysisLevel>
69
<LangVersion>14.0</LangVersion>
710
<Nullable>enable</Nullable>
8-
9-
<!-- Release optimizations -->
11+
1012
<DebugType Condition="'$(Configuration)' == 'Release'">none</DebugType>
1113
<DebugSymbols Condition="'$(Configuration)' == 'Release'">false</DebugSymbols>
1214
<Optimize Condition="'$(Configuration)' == 'Release'">true</Optimize>
13-
14-
<!-- Single language (removes 90+ language folders) -->
15+
1516
<SatelliteResourceLanguages>en</SatelliteResourceLanguages>
16-
17-
<!-- Deterministic builds for reproducibility -->
17+
1818
<Deterministic>true</Deterministic>
1919
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
2020
</PropertyGroup>

setup.iss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ VersionInfoProductName={#MyAppName}
4242
VersionInfoProductVersion={#MyAppVersionNumeric}
4343
WizardStyle=modern
4444
DisableWelcomePage=no
45-
; Native app closure using Windows Restart Manager
46-
; Close both the native launcher and the .NET app
4745
CloseApplications=yes
4846
CloseApplicationsFilter=CopyPaste.exe,CopyPaste.App.exe
4947
RestartApplications=no

0 commit comments

Comments
 (0)