Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: CI
on:
push:
branches: [ "main" ]
workflow_dispatch:

jobs:
prepare:
Expand Down
161 changes: 81 additions & 80 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,30 @@ name: Release
on:
push:
tags:
- "v*.*.*"
- "v*.*.*.*"
workflow_dispatch:

jobs:

prepare:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Determine version
id: version
uses: paulhatch/semantic-version@v5.4.0
with:
version_format: "${major}.${minor}.${patch}"

- name: Upload certificate
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/code_signing.cer
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Determine version
id: version
uses: paulhatch/semantic-version@v5.4.0
with:
version_format: "${major}.${minor}.${patch}"

- name: Upload certificate
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/code_signing.cer

outputs:
version: ${{ steps.version.outputs.version}}
Expand All @@ -37,76 +36,78 @@ jobs:
needs: prepare

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build runtime dependent binaries
uses: "./.github/template/build-signed"
with:
dotnet_args: "-p VersionPrefix=${{ needs.prepare.outputs.version }}"
package_project: dist/Dependent/Dependent.wixproj
package_version: ${{ needs.prepare.outputs.version }}
package: dist\Dependent\bin\Release\BrowserPicker.msi
package_name: DependentSetup-${{ needs.prepare.outputs.version }}-Release
package_path: dist/Dependent/bin/Release
binaries: |
src\BrowserPicker.App\bin\Release\net9.0-windows\publish\BrowserPicker*.dll src\BrowserPicker.App\bin\Release\net9.0-windows\publish\BrowserPicker*.exe
bundle_name: Dependent-${{ needs.prepare.outputs.version }}-Release
bundle_path: src/BrowserPicker.App/bin/Release/net9.0-windows/publish
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build runtime dependent binaries
uses: "./.github/template/build-signed"
with:
dotnet_args: "-p VersionPrefix=${{ needs.prepare.outputs.version }}"
package_project: dist/Dependent/Dependent.wixproj
package_version: ${{ needs.prepare.outputs.version }}
package: dist\Dependent\bin\Release\BrowserPicker.msi
package_name: DependentSetup-${{ needs.prepare.outputs.version }}-Release
package_path: dist/Dependent/bin/Release
binaries: |
src\BrowserPicker.App\bin\Release\net9.0-windows\publish\BrowserPicker*.dll src\BrowserPicker.App\bin\Release\net9.0-windows\publish\BrowserPicker*.exe
bundle_name: Dependent-${{ needs.prepare.outputs.version }}-Release
bundle_path: src/BrowserPicker.App/bin/Release/net9.0-windows/publish

portable:
runs-on: windows-latest
needs: prepare

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build runtime independent binaries
uses: "./.github/template/build-signed"
with:
dotnet_args: "-p VersionPrefix=${{ needs.prepare.outputs.version }} -r win-x64 -p:PublishSingleFile=true"
package_project: dist/Portable/Portable.wixproj
package_version: ${{ needs.prepare.outputs.version }}
package: dist\Portable\bin\Release\BrowserPicker-Portable.msi
package_name: PortableSetup-${{ needs.prepare.outputs.version }}-Release
package_path: dist/Portable/bin/Release
binaries: src\BrowserPicker.App\bin\Release\net9.0-windows\win-x64\publish\BrowserPicker.exe
bundle_name: Portable-${{ needs.prepare.outputs.version }}-Release
bundle_path: src/BrowserPicker.App/bin/Release/net9.0-windows/win-x64/publish
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Build runtime independent binaries
uses: "./.github/template/build-signed"
with:
dotnet_args: "-p VersionPrefix=${{ needs.prepare.outputs.version }} -r win-x64 -p:PublishSingleFile=true"
package_project: dist/Portable/Portable.wixproj
package_version: ${{ needs.prepare.outputs.version }}
package: dist\Portable\bin\Release\BrowserPicker-Portable.msi
package_name: PortableSetup-${{ needs.prepare.outputs.version }}-Release
package_path: dist/Portable/bin/Release
binaries: src\BrowserPicker.App\bin\Release\net9.0-windows\win-x64\publish\BrowserPicker.exe
bundle_name: Portable-${{ needs.prepare.outputs.version }}-Release
bundle_path: src/BrowserPicker.App/bin/Release/net9.0-windows/win-x64/publish

publish:
runs-on: ubuntu-latest
needs: [prepare, dependent, portable]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Retrieve artifacts
uses: actions/download-artifact@v4

- name: Package bundles
run: |
rm -rf *.zip
for bundle in Dependent Portable; do
(cd $bundle-${{ needs.prepare.outputs.version }}-Release; zip -r ../$bundle.zip *)
done

- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
draft: true
prerelease: true
files: |
DependentSetup-${{ needs.prepare.outputs.version }}-Release/BrowserPicker.msi
PortableSetup-${{ needs.prepare.outputs.version }}-Release/BrowserPicker-Portable.msi
Dependent.zip
Portable.zip
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Retrieve artifacts
uses: actions/download-artifact@v4

- name: Package bundles
run: |
rm -rf *.zip
for bundle in Dependent Portable; do
(cd $bundle-${{ needs.prepare.outputs.version }}-Release; zip -r ../$bundle.zip *)
done

- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.ref_name }} # 显式指定Tag名称
name: Release ${{ github.ref_name }} # 可选:设置Release标题
generate_release_notes: true
draft: true
prerelease: true
files: |
DependentSetup-${{ needs.prepare.outputs.version }}-Release/BrowserPicker.msi
PortableSetup-${{ needs.prepare.outputs.version }}-Release/BrowserPicker-Portable.msi
Dependent.zip
Portable.zip
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ bin
obj
*.user
packages/
/.history
*.pubxml
*.lnk
5 changes: 3 additions & 2 deletions BrowserPicker.sln
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31919.166
# Visual Studio Version 18
VisualStudioVersion = 18.1.11304.174
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F46B5958-C607-4E07-9C2C-F63538149287}"
ProjectSection(SolutionItems) = preProject
LICENSE = LICENSE
nuget.config = nuget.config
readme.md = readme.md
Resources.Designer.t4 = Resources.Designer.t4
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BrowserPicker", "src\BrowserPicker\BrowserPicker.csproj", "{D7695535-9C0D-4983-B8F7-09B067347E7E}"
Expand Down
24 changes: 24 additions & 0 deletions choose_version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# 我应该选择哪个版本?

你可在 [GitHub](https://github.com/XTsat/BrowserPicker_i18n/releases) 上获取最新版本

## 依赖 .NET 运行时的安装包

`NoDeps` 版本为即时编译(JIT)版本,需安装 [.NET 9.0 桌面运行时](https://dotnet.microsoft.com/en-us/download/dotnet/9.0) 才能使用。
直接下载链接:[64 位系统](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-9.0.3-windows-x64-installer)、[32 位系统](https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-desktop-9.0.3-windows-x86-installer)。

## 便携版安装包

`Portable` 版本包含适用于 win-x64 系统的可执行文件,可以不用安装直接使用。

## 原生镜像生成

安装过程中,`BrowserPicker.msi` 会执行 ngen 工具为你的电脑生成原生镜像,这能显著提升可执行文件的启动速度。若你选择便携版本,可运行命令 `ngen install BrowserPicker.exe` 以获得相同优化效果。

<!-- ### 签名证书

为避免 “未知发布者” 警告,可先将提供的证书导入你的证书存储区,导入方法参考 [此处](https://stackoverflow.com/questions/49039136/powershell-script-to-install-trusted-publisher-certificates)。 -->

## 手动编译

`VS` 版本是手动编译的最小文件版本
Binary file removed docs/config_add_browser.png
Binary file not shown.
Binary file removed docs/config_add_browser_exe_picked.png
Binary file not shown.
Binary file removed docs/config_behaviour.png
Binary file not shown.
Binary file removed docs/config_defaults_browsers.png
Binary file not shown.
Binary file removed docs/config_defaults_empty.png
Binary file not shown.
Binary file removed docs/config_defaults_match_type.png
Binary file not shown.
Binary file removed docs/config_defaults_test_no_match.png
Binary file not shown.
Binary file removed docs/config_disabled.png
Binary file not shown.
Binary file removed docs/config_list.png
Binary file not shown.
Binary file removed docs/config_list_with_notepad.png
Binary file not shown.
Binary file added docs/en/config_add_browser.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/config_add_browser_exe_picked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/config_behaviour.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/config_defaults_browsers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/config_defaults_empty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/config_defaults_match_type.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/config_defaults_test_no_match.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/config_disabled.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/config_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/config_list_with_notepad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/selector_edit_url.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/selector_edited_url.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/en/selector_two_running.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/selector_edit_url.png
Binary file not shown.
Binary file removed docs/selector_edited_url.png
Binary file not shown.
Binary file removed docs/selector_two_running.png
Diff not rendered.
Binary file added docs/zh/config_add_browser.png
Binary file added docs/zh/config_behaviour.png
Binary file added docs/zh/config_defaults_browsers.png
Binary file added docs/zh/config_defaults_empty.png
Binary file added docs/zh/config_defaults_match_type.png
Binary file added docs/zh/config_defaults_test_no_match.png
Binary file added docs/zh/config_list.png
Binary file added docs/zh/selector_edited_url.png
Binary file added docs/zh/selector_two_running.png
Loading