Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9bde5b74a0 | ||
|
|
bdede36b5f | ||
|
|
d2cb75a8dc | ||
|
|
01188b3009 | ||
|
|
54b89b8e55 | ||
|
|
24dbf013e7 |
@@ -30,7 +30,6 @@ jobs:
|
|||||||
dotnet publish windows/ClaudeCheckerWindows.csproj `
|
dotnet publish windows/ClaudeCheckerWindows.csproj `
|
||||||
-c Release -r win-x64 `
|
-c Release -r win-x64 `
|
||||||
--self-contained true `
|
--self-contained true `
|
||||||
-p:PublishSingleFile=true `
|
|
||||||
-p:Version=${{ steps.version.outputs.version }} `
|
-p:Version=${{ steps.version.outputs.version }} `
|
||||||
-o publish
|
-o publish
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ jobs:
|
|||||||
dotnet publish windows/ClaudeCheckerWindows.csproj `
|
dotnet publish windows/ClaudeCheckerWindows.csproj `
|
||||||
-c Release -r win-x64 `
|
-c Release -r win-x64 `
|
||||||
--self-contained true `
|
--self-contained true `
|
||||||
-p:PublishSingleFile=true `
|
|
||||||
-p:Version=${{ steps.version.outputs.version }} `
|
-p:Version=${{ steps.version.outputs.version }} `
|
||||||
-o publish
|
-o publish
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
VerticalAlignment="Center" Text="Waiting for sign-in…"/>
|
VerticalAlignment="Center" Text="Waiting for sign-in…"/>
|
||||||
<Button Grid.Column="1" Content="Done — I'm signed in"
|
<Button Grid.Column="1" Content="Done — I'm signed in"
|
||||||
Style="{StaticResource PrimaryButton}" Click="Done_Click"
|
Style="{StaticResource PrimaryButton}" Click="Done_Click"
|
||||||
x:Name="DoneButton" IsEnabled="False"/>
|
x:Name="DoneButton"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
@@ -33,13 +33,11 @@ public partial class LoginWindow : Window
|
|||||||
|
|
||||||
var cookies = await Browser.CoreWebView2.CookieManager.GetCookiesAsync("https://claude.ai");
|
var cookies = await Browser.CoreWebView2.CookieManager.GetCookiesAsync("https://claude.ai");
|
||||||
var signedIn = System.Linq.Enumerable.Any(cookies, c =>
|
var signedIn = System.Linq.Enumerable.Any(cookies, c =>
|
||||||
c.Name.Equals("sessionKey", System.StringComparison.OrdinalIgnoreCase) ||
|
c.Domain.Contains("claude.ai") || c.Domain.Contains("anthropic.com"));
|
||||||
c.Name.StartsWith("sk-ant", System.StringComparison.OrdinalIgnoreCase));
|
|
||||||
|
|
||||||
await Dispatcher.InvokeAsync(() =>
|
await Dispatcher.InvokeAsync(() =>
|
||||||
{
|
{
|
||||||
DoneButton.IsEnabled = !uri.Contains("/login") && !uri.Contains("/signin");
|
StatusText.Text = signedIn && !uri.Contains("/login") && !uri.Contains("/signin")
|
||||||
StatusText.Text = signedIn
|
|
||||||
? "Signed in — click Done to continue."
|
? "Signed in — click Done to continue."
|
||||||
: "Complete sign-in, then click Done.";
|
: "Complete sign-in, then click Done.";
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -495,13 +495,21 @@ public partial class PopupWindow : Window
|
|||||||
|
|
||||||
private void CopyDiag_Click(object s, RoutedEventArgs e)
|
private void CopyDiag_Click(object s, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
// SetDataObject(data, false) skips Flush() — avoids CLIPBRD_E_CANT_OPEN crash
|
||||||
var diagText = BuildDiagText();
|
var diagText = BuildDiagText();
|
||||||
for (int i = 0; i < 5; i++)
|
for (int i = 0; i < 5; i++)
|
||||||
{
|
{
|
||||||
try { Clipboard.SetText(diagText); break; }
|
try { Clipboard.SetDataObject(diagText, false); break; }
|
||||||
catch (Exception) { System.Threading.Thread.Sleep(100); }
|
catch (Exception) { System.Threading.Thread.Sleep(100); }
|
||||||
}
|
}
|
||||||
CopyDiagButton.Content = "Copied! (IDs redacted)";
|
CopyDiagButton.Content = "Copied! (IDs redacted)";
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
CopyDiagButton.Content = "Copy failed";
|
||||||
|
}
|
||||||
var t = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1.5) };
|
var t = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1.5) };
|
||||||
t.Tick += (_, _) => { CopyDiagButton.Content = "Copy All"; t.Stop(); };
|
t.Tick += (_, _) => { CopyDiagButton.Content = "Copy All"; t.Stop(); };
|
||||||
t.Start();
|
t.Start();
|
||||||
|
|||||||
@@ -28,8 +28,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
|
|||||||
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: "publish\ClaudeChecker.exe"; DestDir: "{app}"; Flags: ignoreversion
|
Source: "publish\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs
|
||||||
Source: "publish\Assets\*"; DestDir: "{app}\Assets"; Flags: ignoreversion recursesubdirs
|
|
||||||
|
|
||||||
[Icons]
|
[Icons]
|
||||||
Name: "{group}\ClaudeChecker"; Filename: "{app}\ClaudeChecker.exe"
|
Name: "{group}\ClaudeChecker"; Filename: "{app}\ClaudeChecker.exe"
|
||||||
|
|||||||
Reference in New Issue
Block a user