chore: safe root cleanup phase 1 - Refactor .gitignore (più leggibile + pattern moderni) - Move build scripts → build/ - Move installer → Installer/ - Move ico.ico and Powerplans → assets/ - Move TRADEMARK.md → docs/legal/TRADEMARK.md (with root bridge) - Update all internal references (csproj, XAML, C#, .iss, .ps1, docs) - Verified: restore + build + test + publish (SingleFile + MSIX) OK"
This commit is contained in:
+2
-2
@@ -7,5 +7,5 @@
|
||||
|
||||
# Build and release
|
||||
/.github/workflows/ @PrimeBuild-pc
|
||||
/build-release.ps1 @PrimeBuild-pc
|
||||
/setup.iss @PrimeBuild-pc
|
||||
/build/build-release.ps1 @PrimeBuild-pc
|
||||
/Installer/setup.iss @PrimeBuild-pc
|
||||
|
||||
+22
-10
@@ -1,3 +1,7 @@
|
||||
# ============================================================================
|
||||
# ThreadPilot .gitignore - C# WPF desktop app + packaging
|
||||
# ============================================================================
|
||||
|
||||
# Build outputs
|
||||
bin/
|
||||
obj/
|
||||
@@ -26,6 +30,7 @@ coverage*.xml
|
||||
coverage*.info
|
||||
*.coverage
|
||||
*.coveragexml
|
||||
*.trx
|
||||
|
||||
# .NET / NuGet
|
||||
*.deps.json
|
||||
@@ -40,7 +45,7 @@ packages/
|
||||
!packages/build/
|
||||
!packages/repositories.config
|
||||
|
||||
# IDEs
|
||||
# IDE and editor files
|
||||
.vs/
|
||||
*.user
|
||||
*.suo
|
||||
@@ -85,6 +90,7 @@ Installer/Output/
|
||||
*.cab
|
||||
*.msi
|
||||
*.msix
|
||||
*.msixbundle
|
||||
*.msm
|
||||
*.msp
|
||||
*.lnk
|
||||
@@ -95,29 +101,35 @@ Installer/Output/
|
||||
*.publishproj
|
||||
PublishScripts/
|
||||
|
||||
# Diagnostics / profiling
|
||||
*.dmp
|
||||
*.mdmp
|
||||
crashdumps/
|
||||
*.binlog
|
||||
*.etl
|
||||
*.etl.gz
|
||||
|
||||
# Local app data / secrets
|
||||
appsettings.local.json
|
||||
appsettings.*.local.json
|
||||
secrets.json
|
||||
*.secrets.json
|
||||
/Configuration/UserSettings.json
|
||||
/Configuration/ProcessProfiles.json
|
||||
/Data/
|
||||
/AppData/
|
||||
Configuration/UserSettings.json
|
||||
Configuration/ProcessProfiles.json
|
||||
Configuration/*.local.json
|
||||
Data/
|
||||
AppData/
|
||||
%AppData%/ThreadPilot/
|
||||
|
||||
# Project-specific extras
|
||||
.claude/
|
||||
.continue/
|
||||
/CPUSetSetter-main/
|
||||
CPUSetSetter-main/
|
||||
*.bak
|
||||
*.backup
|
||||
*_backup.*
|
||||
*_old.*
|
||||
*.orig
|
||||
*.rej
|
||||
*.dmp
|
||||
*.mdmp
|
||||
crashdumps/
|
||||
*.binlog
|
||||
*.xaml.bak
|
||||
nul
|
||||
@@ -26,7 +26,7 @@ DefaultGroupName={#MyAppName}
|
||||
AllowNoIcons=yes
|
||||
PrivilegesRequiredOverridesAllowed=dialog
|
||||
OutputBaseFilename=ThreadPilot_Setup
|
||||
SetupIconFile=..\ico.ico
|
||||
SetupIconFile=..\assets\icons\ico.ico
|
||||
SolidCompression=yes
|
||||
WizardStyle=modern
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#define MyAppPublisher "Prime Build"
|
||||
#define MyAppURL "https://github.com/PrimeBuild-pc/ThreadPilot"
|
||||
#define MyAppExeName "ThreadPilot.exe"
|
||||
#define MyAppSourceDir "bin\Publish"
|
||||
#define MyAppSourceDir "..\bin\Publish"
|
||||
|
||||
[Setup]
|
||||
AppId={{E8F7A3B2-5C4D-4E6F-8A9B-1C2D3E4F5A6B}
|
||||
@@ -20,11 +20,11 @@ AppUpdatesURL={#MyAppURL}/releases
|
||||
DefaultDirName={autopf}\{#MyAppName}
|
||||
DefaultGroupName={#MyAppName}
|
||||
AllowNoIcons=yes
|
||||
LicenseFile=LICENSE.md
|
||||
LicenseFile=..\LICENSE
|
||||
PrivilegesRequired=admin
|
||||
OutputDir=bin\Installer
|
||||
OutputDir=Output
|
||||
OutputBaseFilename=ThreadPilot_v{#MyAppVersion}_Setup
|
||||
SetupIconFile=ico.ico
|
||||
SetupIconFile=..\assets\icons\ico.ico
|
||||
Compression=lzma2/ultra64
|
||||
SolidCompression=yes
|
||||
WizardStyle=modern
|
||||
+2
-2
@@ -61,7 +61,7 @@
|
||||
|
||||
<ui:TitleBar Grid.Row="0" Title="ThreadPilot">
|
||||
<ui:TitleBar.Icon>
|
||||
<ui:ImageIcon Source="pack://application:,,,/ico.ico"/>
|
||||
<ui:ImageIcon Source="pack://application:,,,/assets/icons/ico.ico"/>
|
||||
</ui:TitleBar.Icon>
|
||||
</ui:TitleBar>
|
||||
|
||||
@@ -219,7 +219,7 @@
|
||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
||||
<!-- Application Icon -->
|
||||
<Image x:Name="LoadingIcon"
|
||||
Source="pack://application:,,,/ico.ico"
|
||||
Source="pack://application:,,,/assets/icons/ico.ico"
|
||||
Width="64"
|
||||
Height="64"
|
||||
Margin="0,0,0,20"
|
||||
|
||||
@@ -86,7 +86,7 @@ dotnet publish ThreadPilot.csproj --configuration Release --runtime win-x64 --se
|
||||
Build release artifacts via script:
|
||||
|
||||
```powershell
|
||||
./build-release.ps1
|
||||
./build/build-release.ps1
|
||||
```
|
||||
|
||||
## Quality and Security
|
||||
|
||||
@@ -517,15 +517,28 @@ namespace ThreadPilot.Services
|
||||
return this.settings.CustomTrayIconPath;
|
||||
}
|
||||
|
||||
var bundledIcon = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ico.ico");
|
||||
return File.Exists(bundledIcon) ? bundledIcon : null;
|
||||
var iconCandidates = new[]
|
||||
{
|
||||
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "ico.ico"),
|
||||
Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "assets", "icons", "ico.ico"),
|
||||
};
|
||||
|
||||
foreach (var candidate in iconCandidates)
|
||||
{
|
||||
if (File.Exists(candidate))
|
||||
{
|
||||
return candidate;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private Icon? TryLoadEmbeddedIcon()
|
||||
{
|
||||
try
|
||||
{
|
||||
var uri = new Uri("pack://application:,,,/ico.ico", UriKind.Absolute);
|
||||
var uri = new Uri("pack://application:,,,/assets/icons/ico.ico", UriKind.Absolute);
|
||||
var streamInfo = System.Windows.Application.GetResourceStream(uri);
|
||||
if (streamInfo != null)
|
||||
{
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
# Trademark Policy
|
||||
|
||||
The trademark policy has moved to [docs/legal/TRADEMARK.md](docs/legal/TRADEMARK.md).
|
||||
# Trademark Policy
|
||||
|
||||
The name "ThreadPilot", the logo, and all branding elements associated with this project
|
||||
are NOT licensed under the GNU Affero General Public License v3.0.
|
||||
|
||||
|
||||
+6
-4
@@ -9,7 +9,7 @@
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<EnableMsixTooling>true</EnableMsixTooling>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<ApplicationIcon>ico.ico</ApplicationIcon>
|
||||
<ApplicationIcon>assets\icons\ico.ico</ApplicationIcon>
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
<SelfContained>true</SelfContained>
|
||||
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||
@@ -36,13 +36,15 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Resource Include="ico.ico" />
|
||||
<Resource Include="assets\icons\ico.ico" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Include bundled power plans in build output -->
|
||||
<ItemGroup>
|
||||
<Content Include="Powerplans\**\*.pow">
|
||||
<Content Include="assets\Powerplans\**\*.pow">
|
||||
<TargetPath>Powerplans\%(RecursiveDir)%(Filename)%(Extension)</TargetPath>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -76,7 +78,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="GenerateMsixFromPublishOutput" AfterTargets="Publish" Condition="'$(GenerateMsixFromPublish)' == 'true'">
|
||||
<Exec Command="powershell -NoProfile -ExecutionPolicy Bypass -File "$(MSBuildProjectDirectory)\build-msix.ps1" -ProjectDir "$(MSBuildProjectDirectory)" -PublishDir "$(PublishDir)." -OutputDir "$(MsixOutputDir)." -Version "$(Version)"" />
|
||||
<Exec Command="powershell -NoProfile -ExecutionPolicy Bypass -File "$(MSBuildProjectDirectory)\build\build-msix.ps1" -ProjectDir "$(MSBuildProjectDirectory)" -PublishDir "$(PublishDir)." -OutputDir "$(MsixOutputDir)." -Version "$(Version)"" />
|
||||
</Target>
|
||||
|
||||
<Import Project="Directory.Publish.props" Condition="Exists('Directory.Publish.props')" />
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
MinHeight="600" MinWidth="800"
|
||||
WindowStartupLocation="CenterOwner"
|
||||
ShowInTaskbar="False"
|
||||
Icon="pack://application:,,,/ico.ico">
|
||||
Icon="pack://application:,,,/assets/icons/ico.ico">
|
||||
|
||||
<Window.Resources>
|
||||
<Style TargetType="Window">
|
||||
|
||||
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
@@ -13,7 +13,8 @@ function Remove-IfExists {
|
||||
}
|
||||
}
|
||||
|
||||
$projectRoot = Split-Path -Parent $PSCommandPath
|
||||
$scriptRoot = Split-Path -Parent $PSCommandPath
|
||||
$projectRoot = Split-Path -Parent $scriptRoot
|
||||
Set-Location -LiteralPath $projectRoot
|
||||
|
||||
$outputRoot = Join-Path $projectRoot ("Installer\Output\v" + $Version)
|
||||
@@ -17,6 +17,7 @@ This folder contains release and engineering documentation for ThreadPilot.
|
||||
- Contributing: ../CONTRIBUTING.md
|
||||
- Code of Conduct: ../CODE_OF_CONDUCT.md
|
||||
- Changelog: ../CHANGELOG.md
|
||||
- Trademark policy: legal/TRADEMARK.md
|
||||
- Compliance audit: audits/COMPLIANCE_AUDIT.md
|
||||
|
||||
## Migration Note
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
# Trademark Policy
|
||||
|
||||
The name "ThreadPilot", the logo, and all branding elements associated with this project
|
||||
are NOT licensed under the GNU Affero General Public License v3.0.
|
||||
|
||||
## Usage Restrictions
|
||||
|
||||
1. **Project Name**: The name "ThreadPilot" may not be used to endorse or promote
|
||||
derivative works without explicit written permission from Prime Build.
|
||||
|
||||
2. **Logo and Branding**: The ThreadPilot logo and visual branding elements may not
|
||||
be used in derivative works or forks without explicit written permission.
|
||||
|
||||
3. **Permitted Uses**:
|
||||
- Attribution in documentation (e.g., "Based on ThreadPilot")
|
||||
- Factual references to the original project
|
||||
- Use in news articles, reviews, and educational content
|
||||
|
||||
4. **Forks and Derivatives**: If you fork or create derivative works, you must:
|
||||
- Choose a different name for your project
|
||||
- Create your own branding and logo
|
||||
- Clearly indicate that your project is a fork/derivative
|
||||
|
||||
## Contact
|
||||
|
||||
For trademark inquiries or permission requests, please contact the project maintainers
|
||||
through the official GitHub repository.
|
||||
|
||||
---
|
||||
|
||||
Copyright (C) 2025 Prime Build. All rights reserved.
|
||||
@@ -53,7 +53,7 @@ Output:
|
||||
- `artifacts/release/msix/ThreadPilot_<version>_win-x64.msix`
|
||||
- `artifacts/release/msix/publish/` (packaging input folder used to create the MSIX)
|
||||
|
||||
`WinX64-MSIX.pubxml` enables a post-publish packaging target that calls `build-msix.ps1` and creates the `.msix` using the Windows SDK `makeappx.exe` tool.
|
||||
`WinX64-MSIX.pubxml` enables a post-publish packaging target that calls `build/build-msix.ps1` and creates the `.msix` using the Windows SDK `makeappx.exe` tool.
|
||||
|
||||
## Code Signing
|
||||
|
||||
@@ -102,10 +102,10 @@ When secrets are missing, the release still builds and publishes unsigned artifa
|
||||
|
||||
## Classic Installer
|
||||
|
||||
Use Inno Setup script (`setup.iss`) for legacy installer packaging.
|
||||
Use Inno Setup script (`Installer/setup.iss`) for legacy installer packaging.
|
||||
|
||||
```powershell
|
||||
iscc setup.iss
|
||||
iscc Installer/setup.iss
|
||||
```
|
||||
|
||||
## Recommended Release Sequence
|
||||
|
||||
Reference in New Issue
Block a user