aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-10-23 23:32:32 +0800
committercrupest <crupest@outlook.com>2024-10-31 18:43:15 +0800
commit5d850fb1b2b4568f6403d950dbfe341886189c2b (patch)
treea0361391ef5abbd0512f7c4c50e814444991eb71
parentccafee054f3a934a8031c3cb5fc8280491bb8e1a (diff)
downloadcrupest-5d850fb1b2b4568f6403d950dbfe341886189c2b.tar.gz
crupest-5d850fb1b2b4568f6403d950dbfe341886189c2b.tar.bz2
crupest-5d850fb1b2b4568f6403d950dbfe341886189c2b.zip
feat(config): update some Windows bootstrap files.
-rw-r--r--configs/Microsoft.PowerShell_profile.ps17
-rw-r--r--configs/crupest-winget.json104
-rw-r--r--configs/winget.json80
-rw-r--r--tools/Crupest.SecretTool/tools/crupest-secret-tool.xml49
4 files changed, 155 insertions, 85 deletions
diff --git a/configs/Microsoft.PowerShell_profile.ps1 b/configs/Microsoft.PowerShell_profile.ps1
index 38dd7cc..aeced5f 100644
--- a/configs/Microsoft.PowerShell_profile.ps1
+++ b/configs/Microsoft.PowerShell_profile.ps1
@@ -1,6 +1,3 @@
-Import-Module posh-git
-Import-Module "$env:VCPKG_INSTALLATION_ROOT\scripts\posh-vcpkg"
-
function Use-VC {
param(
[Parameter()]
@@ -28,8 +25,8 @@ function Use-VC {
function Set-Proxy {
- $env:http_proxy = "http://localhost:2080"
- $env:https_proxy = "http://localhost:2080"
+ $env:http_proxy = "http://127.0.0.1:2080"
+ $env:https_proxy = "http://127.0.0.1:2080"
}
function Reset-Proxy {
diff --git a/configs/crupest-winget.json b/configs/crupest-winget.json
new file mode 100644
index 0000000..df2e7d9
--- /dev/null
+++ b/configs/crupest-winget.json
@@ -0,0 +1,104 @@
+{
+ "$schema" : "https://aka.ms/winget-packages.schema.2.0.json",
+ "CreationDate" : "2024-10-31T18:34:15.174-00:00",
+ "Sources" :
+ [
+ {
+ "Packages" :
+ [
+ {
+ "PackageIdentifier" : "7zip.7zip"
+ },
+ {
+ "PackageIdentifier" : "Docker.DockerDesktop"
+ },
+ {
+ "PackageIdentifier" : "Git.Git"
+ },
+ {
+ "PackageIdentifier" : "Mozilla.Firefox"
+ },
+ {
+ "PackageIdentifier" : "Mozilla.Thunderbird"
+ },
+ {
+ "PackageIdentifier" : "VideoLAN.VLC"
+ },
+ {
+ "PackageIdentifier" : "vim.vim"
+ },
+ {
+ "PackageIdentifier" : "Neovim.Neovim"
+ },
+ {
+ "PackageIdentifier" : "OpenJS.NodeJS"
+ },
+ {
+ "PackageIdentifier" : "voidtools.Everything"
+ },
+ {
+ "PackageIdentifier" : "Neovide.Neovide"
+ },
+ {
+ "PackageIdentifier" : "Microsoft.PowerShell"
+ },
+ {
+ "PackageIdentifier" : "Kitware.CMake"
+ },
+ {
+ "PackageIdentifier" : "JetBrains.PyCharm.Community"
+ },
+ {
+ "PackageIdentifier" : "Tencent.QQ.NT"
+ },
+ {
+ "PackageIdentifier" : "Tencent.WeChat"
+ },
+ {
+ "PackageIdentifier" : "Python.Launcher"
+ },
+ {
+ "PackageIdentifier" : "NetEase.CloudMusic"
+ },
+ {
+ "PackageIdentifier" : "agalwood.Motrix"
+ },
+ {
+ "PackageIdentifier" : "BurntSushi.ripgrep.MSVC"
+ },
+ {
+ "PackageIdentifier" : "Microsoft.VisualStudio.Locator"
+ },
+ {
+ "PackageIdentifier" : "Ninja-build.Ninja"
+ },
+ {
+ "PackageIdentifier" : "Rufus.Rufus"
+ },
+ {
+ "PackageIdentifier" : "Rustlang.Rustup"
+ },
+ {
+ "PackageIdentifier" : "Python.Python.3.13"
+ },
+ {
+ "PackageIdentifier" : "Microsoft.PowerToys"
+ },
+ {
+ "PackageIdentifier" : "Microsoft.VisualStudioCode"
+ },
+ {
+ "PackageIdentifier" : "Microsoft.WinDbg"
+ }
+ ],
+ "SourceDetails" :
+ {
+ "Argument" : "https://cdn.winget.microsoft.com/cache",
+ "Identifier" : "Microsoft.Winget.Source_8wekyb3d8bbwe",
+ "Name" : "winget",
+ "Type" : "Microsoft.PreIndexed.Package"
+ }
+ }
+ ],
+ "WinGetVersion" : "1.9.2411-preview"
+} \ No newline at end of file
diff --git a/configs/winget.json b/configs/winget.json
deleted file mode 100644
index a78016b..0000000
--- a/configs/winget.json
+++ /dev/null
@@ -1,80 +0,0 @@
-{
- "$schema": "https://aka.ms/winget-packages.schema.2.0.json",
- "CreationDate": "2023-10-02T17:22:04.615-00:00",
- "Sources": [
- {
- "Packages": [
- {
- "PackageIdentifier": "7zip.7zip"
- },
- {
- "PackageIdentifier": "BurntSushi.ripgrep.MSVC"
- },
- {
- "PackageIdentifier": "Docker.DockerDesktop"
- },
- {
- "PackageIdentifier": "Mozilla.Firefox.DeveloperEdition"
- },
- {
- "PackageIdentifier": "Git.Git"
- },
- {
- "PackageIdentifier": "LLVM.LLVM"
- },
- {
- "PackageIdentifier": "Microsoft.VisualStudio.Locator"
- },
- {
- "PackageIdentifier": "Microsoft.WinDbg"
- },
- {
- "PackageIdentifier": "Microsoft.WindowsTerminal"
- },
- {
- "PackageIdentifier": "Ninja-build.Ninja"
- },
- {
- "PackageIdentifier": "Rufus.Rufus"
- },
- {
- "PackageIdentifier": "pnpm.pnpm"
- },
- {
- "PackageIdentifier": "Microsoft.PowerShell"
- },
- {
- "PackageIdentifier": "Kitware.CMake"
- },
- {
- "PackageIdentifier": "Neovim.Neovim"
- },
- {
- "PackageIdentifier": "Microsoft.VisualStudioCode"
- },
- {
- "PackageIdentifier": "OpenJS.NodeJS"
- },
- {
- "PackageIdentifier": "Neovide.Neovide"
- },
- {
- "PackageIdentifier": "Microsoft.PowerToys"
- },
- {
- "PackageIdentifier": "voidtools.Everything"
- },
- {
- "PackageIdentifier": "Python.Python.3.12"
- }
- ],
- "SourceDetails": {
- "Argument": "https://cdn.winget.microsoft.com/cache",
- "Identifier": "Microsoft.Winget.Source_8wekyb3d8bbwe",
- "Name": "winget",
- "Type": "Microsoft.PreIndexed.Package"
- }
- }
- ],
- "WinGetVersion": "1.7.2711-preview"
-} \ No newline at end of file
diff --git a/tools/Crupest.SecretTool/tools/crupest-secret-tool.xml b/tools/Crupest.SecretTool/tools/crupest-secret-tool.xml
new file mode 100644
index 0000000..9b85f13
--- /dev/null
+++ b/tools/Crupest.SecretTool/tools/crupest-secret-tool.xml
@@ -0,0 +1,49 @@
+<!--
+ MIT License
+
+ Copyright (c) 2008-2020 Kohsuke Kawaguchi, Sun Microsystems, Inc., CloudBees,
+ Inc., Oleg Nenashev and other contributors
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+-->
+
+<!--
+ This is a sample configuration of the Windows Service Wrapper.
+ This configuration file should be placed near the WinSW executable, the name should be the same.
+ E.g. for myapp.exe the configuration file name should be myapp.xml
+
+ You can find more information about configuration options here:
+https://github.com/kohsuke/winsw/blob/master/doc/xmlConfigFile.md
+-->
+<service>
+ <id>crupest-secret-tool</id>
+ <name>Crupest Secret Tool</name>
+ <description>Crupest Secret Tool (powered by WinSW)</description>
+
+ <!-- Path to the executable, which should be started -->
+ <executable>%BASE%\Crupest.SecretTool.exe</executable>
+
+ <onfailure action="restart" delay="10 sec" />
+ <onfailure action="restart" delay="30 sec" />
+ <onfailure action="restart" delay="50 sec" />
+
+ <workingdirectory>%BASE%</workingdirectory>
+
+ <startmode>Automatic</startmode>
+</service> \ No newline at end of file