mirror of
https://github.com/MaxiFan/TunnelX.git
synced 2026-05-17 21:14:37 +03:00
Remove one-time and unused release files
This commit is contained in:
@@ -24,6 +24,8 @@ Releases/
|
||||
sing-box-new/
|
||||
singbox-xhttp-test*.json
|
||||
*-local-test*.json
|
||||
create-icon.ps1
|
||||
create-ico.ps1
|
||||
|
||||
# Personal notes and exported documents
|
||||
*.docx
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.5.2.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AppTunnel", "AppTunnel.csproj", "{0059C582-210C-49D2-18B2-D776F1A1BBB3}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{0059C582-210C-49D2-18B2-D776F1A1BBB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0059C582-210C-49D2-18B2-D776F1A1BBB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0059C582-210C-49D2-18B2-D776F1A1BBB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0059C582-210C-49D2-18B2-D776F1A1BBB3}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {3712AD0A-C14A-4C96-9AF8-B5472E4173EB}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,67 +0,0 @@
|
||||
# Simple ICO creator - creates a multi-resolution ICO from PNG
|
||||
Add-Type -AssemblyName System.Drawing
|
||||
|
||||
$pngPath = "C:\Dev\AppTunnel\AppTunnel\icon-256.png"
|
||||
$icoPath = "C:\Dev\AppTunnel\AppTunnel\app.ico"
|
||||
|
||||
# Load the PNG
|
||||
$png = [System.Drawing.Image]::FromFile($pngPath)
|
||||
|
||||
# Create different sizes
|
||||
$sizes = @(256, 128, 64, 48, 32, 16)
|
||||
$icons = @()
|
||||
|
||||
foreach ($size in $sizes) {
|
||||
$resized = New-Object System.Drawing.Bitmap $size, $size
|
||||
$graphics = [System.Drawing.Graphics]::FromImage($resized)
|
||||
$graphics.InterpolationMode = [System.Drawing.Drawing2D.InterpolationMode]::HighQualityBicubic
|
||||
$graphics.DrawImage($png, 0, 0, $size, $size)
|
||||
$graphics.Dispose()
|
||||
|
||||
# Convert to icon
|
||||
$ms = New-Object System.IO.MemoryStream
|
||||
$resized.Save($ms, [System.Drawing.Imaging.ImageFormat]::Png)
|
||||
$icons += ,@($size, $ms.ToArray())
|
||||
$resized.Dispose()
|
||||
$ms.Dispose()
|
||||
}
|
||||
|
||||
$png.Dispose()
|
||||
|
||||
# Write ICO file manually
|
||||
$fs = [System.IO.File]::Create($icoPath)
|
||||
$bw = New-Object System.IO.BinaryWriter($fs)
|
||||
|
||||
# ICO header
|
||||
$bw.Write([uint16]0) # Reserved
|
||||
$bw.Write([uint16]1) # Type: 1 = ICO
|
||||
$bw.Write([uint16]$icons.Count) # Number of images
|
||||
|
||||
# Image directory
|
||||
$offset = 6 + ($icons.Count * 16) # Header + directory entries
|
||||
foreach ($icon in $icons) {
|
||||
$size = $icon[0]
|
||||
$data = $icon[1]
|
||||
|
||||
$bw.Write([byte]($size % 256)) # Width (0 = 256)
|
||||
$bw.Write([byte]($size % 256)) # Height
|
||||
$bw.Write([byte]0) # Colors
|
||||
$bw.Write([byte]0) # Reserved
|
||||
$bw.Write([uint16]1) # Color planes
|
||||
$bw.Write([uint16]32) # Bits per pixel
|
||||
$bw.Write([uint32]$data.Length) # Size of image data
|
||||
$bw.Write([uint32]$offset) # Offset to image data
|
||||
|
||||
$offset += $data.Length
|
||||
}
|
||||
|
||||
# Write image data
|
||||
foreach ($icon in $icons) {
|
||||
$bw.Write($icon[1])
|
||||
}
|
||||
|
||||
$bw.Close()
|
||||
$fs.Close()
|
||||
|
||||
Write-Host "ICO file created successfully: $icoPath"
|
||||
Write-Host "Sizes included: $($sizes -join ', ')"
|
||||
@@ -1,56 +0,0 @@
|
||||
# Create a simple Tx icon using .NET Drawing
|
||||
Add-Type -AssemblyName System.Drawing
|
||||
|
||||
# Create 256x256 bitmap
|
||||
$bitmap = New-Object System.Drawing.Bitmap 256, 256
|
||||
$graphics = [System.Drawing.Graphics]::FromImage($bitmap)
|
||||
$graphics.SmoothingMode = [System.Drawing.Drawing2D.SmoothingMode]::AntiAlias
|
||||
$graphics.TextRenderingHint = [System.Drawing.Text.TextRenderingHint]::AntiAlias
|
||||
|
||||
# Draw rounded rectangle background
|
||||
$bgBrush = New-Object System.Drawing.SolidBrush ([System.Drawing.Color]::FromArgb(30, 136, 229))
|
||||
$rect = New-Object System.Drawing.Rectangle 0, 0, 256, 256
|
||||
$path = New-Object System.Drawing.Drawing2D.GraphicsPath
|
||||
$radius = 40
|
||||
$path.AddArc($rect.Left, $rect.Top, $radius, $radius, 180, 90)
|
||||
$path.AddArc($rect.Right - $radius, $rect.Top, $radius, $radius, 270, 90)
|
||||
$path.AddArc($rect.Right - $radius, $rect.Bottom - $radius, $radius, $radius, 0, 90)
|
||||
$path.AddArc($rect.Left, $rect.Bottom - $radius, $radius, $radius, 90, 90)
|
||||
$path.CloseFigure()
|
||||
$graphics.FillPath($bgBrush, $path)
|
||||
|
||||
# Draw "Tx" text
|
||||
$font = New-Object System.Drawing.Font("Segoe UI", 120, [System.Drawing.FontStyle]::Bold)
|
||||
$textBrush = New-Object System.Drawing.SolidBrush ([System.Drawing.Color]::White)
|
||||
$format = New-Object System.Drawing.StringFormat
|
||||
$format.Alignment = [System.Drawing.StringAlignment]::Center
|
||||
$format.LineAlignment = [System.Drawing.StringAlignment]::Center
|
||||
$graphics.DrawString("Tx", $font, $textBrush, 128, 128, $format)
|
||||
|
||||
# Save as PNG first
|
||||
$pngPath = "C:\Dev\AppTunnel\AppTunnel\icon-256.png"
|
||||
$bitmap.Save($pngPath, [System.Drawing.Imaging.ImageFormat]::Png)
|
||||
Write-Host "PNG icon created: $pngPath"
|
||||
|
||||
# Cleanup
|
||||
$graphics.Dispose()
|
||||
$bitmap.Dispose()
|
||||
$font.Dispose()
|
||||
$textBrush.Dispose()
|
||||
$bgBrush.Dispose()
|
||||
|
||||
Write-Host "Now converting PNG to ICO..."
|
||||
|
||||
# Convert PNG to ICO using ImageMagick if available, otherwise use online tool
|
||||
if (Get-Command magick -ErrorAction SilentlyContinue) {
|
||||
magick convert $pngPath -define icon:auto-resize=256,128,96,64,48,32,16 "C:\Dev\AppTunnel\AppTunnel\app.ico"
|
||||
Write-Host "ICO created successfully!"
|
||||
} else {
|
||||
Write-Host "ImageMagick not found. Creating basic ICO..."
|
||||
# Simple ICO creation without ImageMagick
|
||||
$ico = [System.Drawing.Icon]::FromHandle($bitmap.GetHicon())
|
||||
$stream = [System.IO.File]::Create("C:\Dev\AppTunnel\AppTunnel\app.ico")
|
||||
$ico.Save($stream)
|
||||
$stream.Close()
|
||||
Write-Host "Basic ICO created at C:\Dev\AppTunnel\AppTunnel\app.ico"
|
||||
}
|
||||
Reference in New Issue
Block a user