rebrand: frp -> kanhole (kanhole server, kanholec client)
golangci-lint / lint (push) Failing after 1m5s
golangci-lint / lint (push) Failing after 1m5s
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
# frpc configuration
|
||||
# Generated by frpc installer
|
||||
# Edit this file to configure your frp client.
|
||||
|
||||
serverAddr = "127.0.0.1"
|
||||
serverPort = 7000
|
||||
auth.token = ""
|
||||
|
||||
# Uncomment and set the URL to auto-fetch config from frps:
|
||||
# configURL = "http://your-server:7500/admin/api/frpc/proxy-config/YOUR_KEY"
|
||||
@@ -1,13 +1,13 @@
|
||||
<#
|
||||
.SYNOPSIS
|
||||
frpc Windows Setup Wizard (Interactive PowerShell Installer)
|
||||
kanholec Windows Setup Wizard (Interactive PowerShell Installer)
|
||||
.DESCRIPTION
|
||||
Interactive installer for frpc with EULA acceptance, directory selection,
|
||||
Interactive installer for kanholec with EULA acceptance, directory selection,
|
||||
and optional features (PATH, shortcuts, desktop icon).
|
||||
.PARAMETER Unattended
|
||||
Run in silent mode with defaults.
|
||||
.PARAMETER InstallDir
|
||||
Installation directory (default: $env:ProgramFiles\frpc).
|
||||
Installation directory (default: $env:ProgramFiles\kanholec).
|
||||
.EXAMPLE
|
||||
.\install.ps1
|
||||
.\install.ps1 -Unattended
|
||||
@@ -15,17 +15,17 @@
|
||||
|
||||
param(
|
||||
[switch]$Unattended,
|
||||
[string]$InstallDir = "$env:ProgramFiles\frpc"
|
||||
[string]$InstallDir = "$env:ProgramFiles\kanholec"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$host.UI.RawUI.WindowTitle = "frpc Setup Wizard"
|
||||
$env:FRPC_VERSION = "0.62.0"
|
||||
$host.UI.RawUI.WindowTitle = "kanholec Setup Wizard"
|
||||
$env:KANHOLEC_VERSION = "0.62.0"
|
||||
|
||||
function Write-Banner {
|
||||
Clear-Host
|
||||
Write-Host "========================================" -ForegroundColor Cyan
|
||||
Write-Host " frpc - frp Client v$env:FRPC_VERSION" -ForegroundColor Cyan
|
||||
Write-Host " kanholec - kanhole Client v$env:KANHOLEC_VERSION" -ForegroundColor Cyan
|
||||
Write-Host " Setup Wizard" -ForegroundColor Cyan
|
||||
Write-Host "========================================" -ForegroundColor Cyan
|
||||
Write-Host ""
|
||||
@@ -40,7 +40,7 @@ function Show-License {
|
||||
if (Test-Path $Path) {
|
||||
Get-Content $Path | ForEach-Object { Write-Host $_ }
|
||||
} else {
|
||||
Write-Host "frpc is licensed under the Apache License, Version 2.0."
|
||||
Write-Host "kanholec is licensed under the Apache License, Version 2.0."
|
||||
Write-Host "See http://www.apache.org/licenses/LICENSE-2.0"
|
||||
}
|
||||
Write-Host ""
|
||||
@@ -86,7 +86,7 @@ function Select-Components {
|
||||
Write-Host ""
|
||||
|
||||
$components = @{
|
||||
"Main" = @{Desc="frpc binary and config"; Default=$true}
|
||||
"Main" = @{Desc="kanholec binary and config"; Default=$true}
|
||||
"Path" = @{Desc="Add to system PATH"; Default=$true}
|
||||
"StartMenu" = @{Desc="Start Menu shortcuts"; Default=$true}
|
||||
"Desktop" = @{Desc="Desktop shortcut"; Default=$false}
|
||||
@@ -144,42 +144,42 @@ function Install-Frpc {
|
||||
)
|
||||
|
||||
Write-Banner
|
||||
Write-Host "Installing frpc..." -ForegroundColor Yellow
|
||||
Write-Host "Installing kanholec..." -ForegroundColor Yellow
|
||||
Write-Host "==================" -ForegroundColor Yellow
|
||||
Write-Host ""
|
||||
|
||||
# Create directories
|
||||
Write-Host " Creating directories..." -NoNewline
|
||||
New-Item -Path $InstallDir -ItemType Directory -Force | Out-Null
|
||||
$configDir = "$env:ProgramData\frpc"
|
||||
$configDir = "$env:ProgramData\kanholec"
|
||||
New-Item -Path $configDir -ItemType Directory -Force | Out-Null
|
||||
Write-Host " OK" -ForegroundColor Green
|
||||
|
||||
# Copy binary
|
||||
Write-Host " Copying frpc.exe..." -NoNewline
|
||||
Write-Host " Copying kanholec.exe..." -NoNewline
|
||||
if ($BinarySource -and (Test-Path $BinarySource)) {
|
||||
Copy-Item -Path $BinarySource -Destination "$InstallDir\frpc.exe" -Force
|
||||
Copy-Item -Path $BinarySource -Destination "$InstallDir\kanholec.exe" -Force
|
||||
} else {
|
||||
# Download from GitHub
|
||||
$url = "https://github.com/fatedier/frp/releases/download/v$env:FRPC_VERSION/frp_${env:FRPC_VERSION}_windows_amd64.zip"
|
||||
$zipPath = "$env:TEMP\frpc.zip"
|
||||
$url = "https://github.com/fatedier/kanhole/releases/download/v$env:KANHOLEC_VERSION/kanhole_${env:KANHOLEC_VERSION}_windows_amd64.zip"
|
||||
$zipPath = "$env:TEMP\kanholec.zip"
|
||||
Write-Host ""
|
||||
Write-Host " Downloading from GitHub..." -NoNewline
|
||||
Invoke-WebRequest -Uri $url -OutFile $zipPath -UseBasicParsing
|
||||
Expand-Archive -Path $zipPath -DestinationPath "$env:TEMP\frpc" -Force
|
||||
$exePath = Get-ChildItem -Path "$env:TEMP\frpc" -Recurse -Filter "frpc.exe" | Select-Object -First 1 -ExpandProperty FullName
|
||||
if (-not $exePath) { throw "frpc.exe not found in archive" }
|
||||
Copy-Item -Path $exePath -Destination "$InstallDir\frpc.exe" -Force
|
||||
Expand-Archive -Path $zipPath -DestinationPath "$env:TEMP\kanholec" -Force
|
||||
$exePath = Get-ChildItem -Path "$env:TEMP\kanholec" -Recurse -Filter "kanholec.exe" | Select-Object -First 1 -ExpandProperty FullName
|
||||
if (-not $exePath) { throw "kanholec.exe not found in archive" }
|
||||
Copy-Item -Path $exePath -Destination "$InstallDir\kanholec.exe" -Force
|
||||
}
|
||||
Write-Host " OK" -ForegroundColor Green
|
||||
|
||||
# Config file
|
||||
Write-Host " Creating config..." -NoNewline
|
||||
$configFile = "$configDir\frpc.toml"
|
||||
$configFile = "$configDir\kanholec.toml"
|
||||
if (-not (Test-Path $configFile)) {
|
||||
@"
|
||||
# frpc configuration
|
||||
# Edit this file to configure your frp client.
|
||||
# kanholec configuration
|
||||
# Edit this file to configure your kanhole client.
|
||||
|
||||
serverAddr = "127.0.0.1"
|
||||
serverPort = 7000
|
||||
@@ -203,13 +203,13 @@ auth.token = ""
|
||||
# Start Menu
|
||||
if ($Components["StartMenu"]) {
|
||||
Write-Host " Creating Start Menu shortcuts..." -NoNewline
|
||||
$startMenu = "$([Environment]::GetFolderPath('CommonStartMenu'))\Programs\frpc"
|
||||
$startMenu = "$([Environment]::GetFolderPath('CommonStartMenu'))\Programs\kanholec"
|
||||
New-Item -Path $startMenu -ItemType Directory -Force | Out-Null
|
||||
$wshell = New-Object -ComObject WScript.Shell
|
||||
$shortcut = $wshell.CreateShortcut("$startMenu\frpc.lnk")
|
||||
$shortcut.TargetPath = "$InstallDir\frpc.exe"
|
||||
$shortcut = $wshell.CreateShortcut("$startMenu\kanholec.lnk")
|
||||
$shortcut.TargetPath = "$InstallDir\kanholec.exe"
|
||||
$shortcut.Save()
|
||||
$unlink = $wshell.CreateShortcut("$startMenu\Uninstall frpc.lnk")
|
||||
$unlink = $wshell.CreateShortcut("$startMenu\Uninstall kanholec.lnk")
|
||||
$unlink.TargetPath = "$InstallDir\uninstall.ps1"
|
||||
$unlink.Save()
|
||||
Write-Host " OK" -ForegroundColor Green
|
||||
@@ -220,8 +220,8 @@ auth.token = ""
|
||||
Write-Host " Creating desktop shortcut..." -NoNewline
|
||||
$desktop = [Environment]::GetFolderPath('Desktop')
|
||||
$wshell = New-Object -ComObject WScript.Shell
|
||||
$shortcut = $wshell.CreateShortcut("$desktop\frpc.lnk")
|
||||
$shortcut.TargetPath = "$InstallDir\frpc.exe"
|
||||
$shortcut = $wshell.CreateShortcut("$desktop\kanholec.lnk")
|
||||
$shortcut.TargetPath = "$InstallDir\kanholec.exe"
|
||||
$shortcut.Save()
|
||||
Write-Host " OK" -ForegroundColor Green
|
||||
}
|
||||
@@ -232,17 +232,17 @@ auth.token = ""
|
||||
param([switch]`$Silent)
|
||||
`$InstallDir = "$InstallDir"
|
||||
if (-not `$Silent) {
|
||||
`$choice = `$host.UI.PromptForChoice("Uninstall frpc", "Remove frpc from this computer?", @(@{Label="&Yes"; Help=""}, @{Label="&No"; Help=""}), 1)
|
||||
`$choice = `$host.UI.PromptForChoice("Uninstall kanholec", "Remove kanholec from this computer?", @(@{Label="&Yes"; Help=""}, @{Label="&No"; Help=""}), 1)
|
||||
if (`$choice -ne 0) { exit }
|
||||
}
|
||||
# Remove files
|
||||
Remove-Item -Path "`$InstallDir\frpc.exe" -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item -Path "`$InstallDir\kanholec.exe" -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item -Path "`$InstallDir\uninstall.ps1" -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item -Path "`$InstallDir" -Force -ErrorAction SilentlyContinue
|
||||
# Remove shortcuts
|
||||
Remove-Item -Path "$([Environment]::GetFolderPath('CommonStartMenu'))\Programs\frpc" -Recurse -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item -Path "$([Environment]::GetFolderPath('Desktop'))\frpc.lnk" -Force -ErrorAction SilentlyContinue
|
||||
Write-Host "frpc has been uninstalled."
|
||||
Remove-Item -Path "$([Environment]::GetFolderPath('CommonStartMenu'))\Programs\kanholec" -Recurse -Force -ErrorAction SilentlyContinue
|
||||
Remove-Item -Path "$([Environment]::GetFolderPath('Desktop'))\kanholec.lnk" -Force -ErrorAction SilentlyContinue
|
||||
Write-Host "kanholec has been uninstalled."
|
||||
"@ | Out-File -FilePath "$InstallDir\uninstall.ps1" -Encoding utf8
|
||||
Write-Host " OK" -ForegroundColor Green
|
||||
|
||||
@@ -250,21 +250,21 @@ Write-Host "frpc has been uninstalled."
|
||||
Write-Host "Installation complete!" -ForegroundColor Green
|
||||
Write-Host ""
|
||||
Write-Host "Quick start:" -ForegroundColor Yellow
|
||||
Write-Host " frpc --help"
|
||||
Write-Host " frpc --server-config http://your-server:7500/admin/api/frpc/proxy-config/YOUR_KEY"
|
||||
Write-Host " frpc -c $configFile"
|
||||
Write-Host " kanholec --help"
|
||||
Write-Host " kanholec --server-config http://your-server:7500/admin/api/kanholec/proxy-config/YOUR_KEY"
|
||||
Write-Host " kanholec -c $configFile"
|
||||
Write-Host ""
|
||||
Write-Host "Auth with provisioning token:" -ForegroundColor Yellow
|
||||
Write-Host " frpc auth login --server http://your-server:7500 --client-name myclient"
|
||||
Write-Host " kanholec auth login --server http://your-server:7500 --client-name myclient"
|
||||
Write-Host ""
|
||||
}
|
||||
|
||||
# ===== Main =====
|
||||
|
||||
$scriptDir = Split-Path -Parent $PSCommandPath
|
||||
$binarySource = Join-Path $scriptDir "..\bin\frpc-windows-amd64.exe"
|
||||
$binarySource = Join-Path $scriptDir "..\bin\kanholec-windows-amd64.exe"
|
||||
if (-not (Test-Path $binarySource)) {
|
||||
$binarySource = Join-Path $scriptDir "frpc-windows-amd64.exe"
|
||||
$binarySource = Join-Path $scriptDir "kanholec-windows-amd64.exe"
|
||||
}
|
||||
if (-not (Test-Path $binarySource)) {
|
||||
$binarySource = $null
|
||||
@@ -296,14 +296,14 @@ if ($Unattended) {
|
||||
Write-Host ""
|
||||
$runNow = $host.UI.PromptForChoice(
|
||||
"Setup Complete",
|
||||
"Run frpc now?",
|
||||
"Run kanholec now?",
|
||||
[System.Management.Automation.Host.ChoiceDescription[]]@(
|
||||
@{Label="&Yes"; Help="Run frpc"},
|
||||
@{Label="&Yes"; Help="Run kanholec"},
|
||||
@{Label="&No"; Help="Close"}
|
||||
),
|
||||
0
|
||||
)
|
||||
if ($runNow -eq 0) {
|
||||
Start-Process "$dir\frpc.exe"
|
||||
Start-Process "$dir\kanholec.exe"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# kanholec configuration
|
||||
# Generated by kanholec installer
|
||||
# Edit this file to configure your kanhole client.
|
||||
|
||||
serverAddr = "127.0.0.1"
|
||||
serverPort = 7000
|
||||
auth.token = ""
|
||||
|
||||
# Uncomment and set the URL to auto-fetch config from kanholes:
|
||||
# configURL = "http://your-server:7500/admin/api/kanholec/proxy-config/YOUR_KEY"
|
||||
@@ -1,16 +1,16 @@
|
||||
; frpc Windows Installer (NSIS)
|
||||
; Build: makensis frpc.nsi
|
||||
; kanholec Windows Installer (NSIS)
|
||||
; Build: makensis kanholec.nsi
|
||||
; Requires: NSIS 3.x (https://nsis.sourceforge.io)
|
||||
|
||||
!define PRODUCT_NAME "frpc"
|
||||
!define PRODUCT_NAME "kanholec"
|
||||
!define PRODUCT_VERSION "0.62.0"
|
||||
!define PRODUCT_PUBLISHER "frp Contributors"
|
||||
!define PRODUCT_WEB_SITE "https://github.com/fatedier/frp"
|
||||
!define PRODUCT_PUBLISHER "kanhole Contributors"
|
||||
!define PRODUCT_WEB_SITE "https://github.com/kanhole/kanhole"
|
||||
!define PRODUCT_DIR "$PROGRAMFILES64\${PRODUCT_NAME}"
|
||||
!define PRODUCT_UNINSTALL_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
|
||||
|
||||
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
|
||||
OutFile "..\..\bin\frpc-${PRODUCT_VERSION}-setup.exe"
|
||||
OutFile "..\..\bin\kanholec-${PRODUCT_VERSION}-setup.exe"
|
||||
InstallDir "${PRODUCT_DIR}"
|
||||
InstallDirRegKey HKLM "${PRODUCT_UNINSTALL_KEY}" "InstallLocation"
|
||||
RequestExecutionLevel admin
|
||||
@@ -53,7 +53,7 @@ Function setFinishPage
|
||||
${NSD_CreateLabel} 0 0 100% 24 "Setup Complete"
|
||||
Pop $0
|
||||
|
||||
${NSD_CreateCheckbox} 0 30 100% 12 "Run frpc now"
|
||||
${NSD_CreateCheckbox} 0 30 100% 12 "Run kanholec now"
|
||||
Pop $RunNowCheckbox
|
||||
${NSD_Check} $RunNowCheckbox
|
||||
|
||||
@@ -68,24 +68,24 @@ Function .onGUIEnd
|
||||
${NSD_GetState} $ShowReadmeCheckbox $ReadmeState
|
||||
|
||||
${If} $RunNowState == ${BST_CHECKED}
|
||||
ExecShell "open" "$INSTDIR\frpc.exe"
|
||||
ExecShell "open" "$INSTDIR\kanholec.exe"
|
||||
${EndIf}
|
||||
|
||||
${If} $ReadmeState == ${BST_CHECKED}
|
||||
ExecShell "open" "$PROGRAMDATA\frpc"
|
||||
ExecShell "open" "$PROGRAMDATA\kanholec"
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
||||
Section "frpc (required)" SEC_FRPC
|
||||
Section "kanholec (required)" SEC_KANHOLEC
|
||||
SectionIn RO
|
||||
SetOutPath "$INSTDIR"
|
||||
File "..\..\bin\frpc-windows-amd64.exe"
|
||||
Rename "$INSTDIR\frpc-windows-amd64.exe" "$INSTDIR\frpc.exe"
|
||||
File "..\..\bin\kanholec-windows-amd64.exe"
|
||||
Rename "$INSTDIR\kanholec-windows-amd64.exe" "$INSTDIR\kanholec.exe"
|
||||
|
||||
; Config directory
|
||||
CreateDirectory "$PROGRAMDATA\frpc"
|
||||
SetOutPath "$PROGRAMDATA\frpc"
|
||||
File "/oname=frpc.toml" "..\..\packaging\windows\frpc.default.toml"
|
||||
CreateDirectory "$PROGRAMDATA\kanholec"
|
||||
SetOutPath "$PROGRAMDATA\kanholec"
|
||||
File "/oname=kanholec.toml" "..\..\packaging\windows\kanholec.default.toml"
|
||||
|
||||
WriteUninstaller "$INSTDIR\uninstall.exe"
|
||||
|
||||
@@ -95,7 +95,7 @@ Section "frpc (required)" SEC_FRPC
|
||||
WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
|
||||
WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
|
||||
WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "URLInfoAbout" "${PRODUCT_WEB_SITE}"
|
||||
WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\frpc.exe,0"
|
||||
WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "DisplayIcon" "$INSTDIR\kanholec.exe,0"
|
||||
WriteRegStr HKLM "${PRODUCT_UNINSTALL_KEY}" "InstallLocation" "$INSTDIR"
|
||||
WriteRegDWORD HKLM "${PRODUCT_UNINSTALL_KEY}" "NoModify" 1
|
||||
WriteRegDWORD HKLM "${PRODUCT_UNINSTALL_KEY}" "NoRepair" 1
|
||||
@@ -103,8 +103,8 @@ SectionEnd
|
||||
|
||||
Section "Start Menu Shortcuts" SEC_SHORTCUTS
|
||||
CreateDirectory "$SMPROGRAMS\${PRODUCT_NAME}"
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\frpc.lnk" "$INSTDIR\frpc.exe" "" "$INSTDIR\frpc.exe" 0
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Config Directory.lnk" "$PROGRAMDATA\frpc"
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\kanholec.lnk" "$INSTDIR\kanholec.exe" "" "$INSTDIR\kanholec.exe" 0
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Config Directory.lnk" "$PROGRAMDATA\kanholec"
|
||||
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk" "$INSTDIR\uninstall.exe"
|
||||
SectionEnd
|
||||
|
||||
@@ -114,33 +114,33 @@ Section "Add to PATH" SEC_PATH
|
||||
SectionEnd
|
||||
|
||||
Section "Desktop Shortcut" SEC_DESKTOP
|
||||
CreateShortCut "$DESKTOP\frpc.lnk" "$INSTDIR\frpc.exe" "" "$INSTDIR\frpc.exe" 0
|
||||
CreateShortCut "$DESKTOP\kanholec.lnk" "$INSTDIR\kanholec.exe" "" "$INSTDIR\kanholec.exe" 0
|
||||
SectionEnd
|
||||
|
||||
; Descriptions
|
||||
LangString DESC_SEC_FRPC ${LANG_ENGLISH} "frpc binary and default configuration."
|
||||
LangString DESC_SEC_SHORTCUTS ${LANG_ENGLISH} "Start menu shortcuts for frpc."
|
||||
LangString DESC_SEC_PATH ${LANG_ENGLISH} "Add frpc installation directory to system PATH."
|
||||
LangString DESC_SEC_DESKTOP ${LANG_ENGLISH} "Create a desktop shortcut for frpc."
|
||||
LangString DESC_SEC_KANHOLEC ${LANG_ENGLISH} "kanholec binary and default configuration."
|
||||
LangString DESC_SEC_SHORTCUTS ${LANG_ENGLISH} "Start menu shortcuts for kanholec."
|
||||
LangString DESC_SEC_PATH ${LANG_ENGLISH} "Add kanholec installation directory to system PATH."
|
||||
LangString DESC_SEC_DESKTOP ${LANG_ENGLISH} "Create a desktop shortcut for kanholec."
|
||||
|
||||
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_FRPC} $(DESC_SEC_FRPC)
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_KANHOLEC} $(DESC_SEC_KANHOLEC)
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_SHORTCUTS} $(DESC_SEC_SHORTCUTS)
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_PATH} $(DESC_SEC_PATH)
|
||||
!insertmacro MUI_DESCRIPTION_TEXT ${SEC_DESKTOP} $(DESC_SEC_DESKTOP)
|
||||
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
||||
|
||||
Section "Uninstall"
|
||||
Delete "$INSTDIR\frpc.exe"
|
||||
Delete "$INSTDIR\kanholec.exe"
|
||||
Delete "$INSTDIR\uninstall.exe"
|
||||
RMDir "$INSTDIR"
|
||||
|
||||
Delete "$SMPROGRAMS\${PRODUCT_NAME}\frpc.lnk"
|
||||
Delete "$SMPROGRAMS\${PRODUCT_NAME}\kanholec.lnk"
|
||||
Delete "$SMPROGRAMS\${PRODUCT_NAME}\Config Directory.lnk"
|
||||
Delete "$SMPROGRAMS\${PRODUCT_NAME}\Uninstall.lnk"
|
||||
RMDir "$SMPROGRAMS\${PRODUCT_NAME}"
|
||||
|
||||
Delete "$DESKTOP\frpc.lnk"
|
||||
Delete "$DESKTOP\kanholec.lnk"
|
||||
|
||||
EnVar::DeleteValue "PATH" "$INSTDIR"
|
||||
|
||||
@@ -1,45 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Wix xmlns="http://wixtoolset.org/schemas/v3/wxs">
|
||||
<Product
|
||||
Name="frpc"
|
||||
Name="kanholec"
|
||||
Id="*"
|
||||
UpgradeCode="A1B2C3D4-E5F6-7890-ABCD-EF1234567890"
|
||||
Language="1033"
|
||||
Codepage="1252"
|
||||
Version="0.62.0"
|
||||
Manufacturer="frp Contributors">
|
||||
Manufacturer="kanhole Contributors">
|
||||
|
||||
<Package
|
||||
InstallerVersion="200"
|
||||
Compressed="yes"
|
||||
InstallScope="perMachine"
|
||||
Description="frp Client"
|
||||
Comments="frpc is the client component of frp - a fast reverse proxy." />
|
||||
Description="kanhole Client"
|
||||
Comments="kanholec is the client component of kanhole - a fast reverse proxy." />
|
||||
|
||||
<Media Id="1" Cabinet="frpc.cab" EmbedCab="yes" />
|
||||
<Media Id="1" Cabinet="kanholec.cab" EmbedCab="yes" />
|
||||
|
||||
<Directory Id="TARGETDIR" Name="SourceDir">
|
||||
<Directory Id="ProgramFiles64Folder">
|
||||
<Directory Id="INSTALLDIR" Name="frpc">
|
||||
<Directory Id="INSTALLDIR" Name="kanholec">
|
||||
<Component Id="FrpcBinary" Guid="E1B2C3D4-E5F6-7890-ABCD-EF1234567894">
|
||||
<File Id="FrpcExe" Name="frpc.exe" DiskId="1" Source="bin/frpc-windows-amd64.exe" KeyPath="yes" />
|
||||
<File Id="FrpcExe" Name="kanholec.exe" DiskId="1" Source="bin/kanholec-windows-amd64.exe" KeyPath="yes" />
|
||||
</Component>
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
<Directory Id="ProgramMenuFolder">
|
||||
<Directory Id="ApplicationProgramsFolder" Name="frpc">
|
||||
<Directory Id="ApplicationProgramsFolder" Name="kanholec">
|
||||
<Component Id="StartMenuShortcuts" Guid="A2B2C3D4-E5F6-7890-ABCD-EF1234567892">
|
||||
<Shortcut Id="FrpcShortcut" Name="frpc" Target="[INSTALLDIR]frpc.exe" WorkingDirectory="INSTALLDIR" Description="frp client" />
|
||||
<Shortcut Id="UninstallShortcut" Name="Uninstall frpc" Target="[System64Folder]msiexec.exe" Arguments="/x [ProductCode]" />
|
||||
<Shortcut Id="FrpcShortcut" Name="kanholec" Target="[INSTALLDIR]kanholec.exe" WorkingDirectory="INSTALLDIR" Description="kanhole client" />
|
||||
<Shortcut Id="UninstallShortcut" Name="Uninstall kanholec" Target="[System64Folder]msiexec.exe" Arguments="/x [ProductCode]" />
|
||||
<RemoveFolder Id="RemoveApplicationProgramsFolder" On="uninstall" />
|
||||
<RegistryValue Root="HKCU" Key="Software\frp\frpc" Name="installed" Type="integer" Value="1" />
|
||||
<RegistryValue Root="HKCU" Key="Software\kanhole\kanholec" Name="installed" Type="integer" Value="1" />
|
||||
</Component>
|
||||
</Directory>
|
||||
</Directory>
|
||||
</Directory>
|
||||
|
||||
<Feature Id="Main" Title="frpc" Description="frp client binary" Level="1">
|
||||
<Feature Id="Main" Title="kanholec" Description="kanhole client binary" Level="1">
|
||||
<ComponentRef Id="FrpcBinary" />
|
||||
<ComponentRef Id="StartMenuShortcuts" />
|
||||
</Feature>
|
||||
@@ -1,14 +1,14 @@
|
||||
{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deftab720{\fonttbl{\f0\fnil\fcharset0 Arial;}{\f1\fmodern\fcharset0 Courier New;}}
|
||||
{\colortbl\red0\green0\blue0;\red255\green255\blue255;}
|
||||
\viewkind4\uc1\pard\qc\b\fs28 frpc - frp Client\par
|
||||
\b0\fs20 Version 0.62.0\par
|
||||
\viewkind4\uc1\pard\qc\b\fs28 kanholec\par
|
||||
\b0\fs20 Version 0.1.0\par
|
||||
\pard\sa200\sl240\slmult1\fs20\par
|
||||
\pard\sa200\sl240\slmult1\b\fs24 License Agreement\b0\fs20\par
|
||||
\pard\sa200\sl240\slmult1\par
|
||||
\pard\sa200\sl240\slmult1\fs20 This is a legal agreement between you (the "Licensee") and the frp project contributors ("Licensor"). By installing or using frpc, you agree to the following terms and conditions.\par
|
||||
\pard\sa200\sl240\slmult1\fs20 This is a legal agreement between you (the "Licensee") and the kanhole project contributors ("Licensor"). By installing or using kanholec, you agree to the following terms and conditions.\par
|
||||
\pard\sa200\sl240\slmult1\par
|
||||
\pard\sa200\sl240\slmult1\b 1. Grant of License\b0\par
|
||||
\pard\sa200\sl240\slmult1 The frpc software is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. You may obtain a copy of the License at:\par
|
||||
\pard\sa200\sl240\slmult1 The kanholec software is licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. You may obtain a copy of the License at:\par
|
||||
\pard\sa200\sl240\slmult1 http://www.apache.org/licenses/LICENSE-2.0\par
|
||||
\pard\sa200\sl240\slmult1\par
|
||||
\pard\sa200\sl240\slmult1\b 2. Distribution\b0\par
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
frpc - frp Client (version 0.62.0)
|
||||
=====================================
|
||||
Copyright (c) frp project contributors.
|
||||
kanholec - kanhole Client (version 0.1.0)
|
||||
============================================
|
||||
Copyright (c) kanhole project contributors.
|
||||
Licensed under the Apache License, Version 2.0.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
Reference in New Issue
Block a user