Rename project across all relevant files, including HTML, configuration, and scripts, to reflect the new branding.
This commit is contained in:
4
.github/back/build copy.yml
vendored
4
.github/back/build copy.yml
vendored
@@ -64,8 +64,8 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
|
||||
releaseName: 'PacBao v__VERSION__' # tauri-action replaces \_\_VERSION\_\_ with the app version.
|
||||
releaseBody: 'This is a workflow to help you automate the publishing of your PacBao project to GitHub Packages.'
|
||||
releaseName: 'PakePlus v__VERSION__' # tauri-action replaces \_\_VERSION\_\_ with the app version.
|
||||
releaseBody: 'This is a workflow to help you automate the publishing of your PakePlus project to GitHub Packages.'
|
||||
releaseDraft: false
|
||||
prerelease: false
|
||||
publish: true
|
||||
|
||||
4
.github/back/build.yml
vendored
4
.github/back/build.yml
vendored
@@ -73,8 +73,8 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tagName: 'PacBao-v__VERSION__'
|
||||
releaseName: 'PacBao v__VERSION__'
|
||||
tagName: 'PakePlus-v__VERSION__'
|
||||
releaseName: 'PakePlus v__VERSION__'
|
||||
body_path: ./Note.md
|
||||
releaseDraft: true
|
||||
prerelease: false
|
||||
|
||||
4
.github/back/other.yml
vendored
4
.github/back/other.yml
vendored
@@ -103,8 +103,8 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tagName: ${{ github.ref_name }}
|
||||
releaseName: 'PacBao v__VERSION__'
|
||||
releaseBody: 'This is a workflow to help you automate the publishing of your PacBao project to GitHub Packages.'
|
||||
releaseName: 'PakePlus v__VERSION__'
|
||||
releaseBody: 'This is a workflow to help you automate the publishing of your PakePlus project to GitHub Packages.'
|
||||
releaseDraft: true
|
||||
prerelease: false
|
||||
args: --target ${{ matrix.target }}
|
||||
|
||||
6
.github/back/runner.yml
vendored
6
.github/back/runner.yml
vendored
@@ -21,9 +21,9 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tagName: 'PacBao-v__VERSION__'
|
||||
releaseName: 'PacBao v__VERSION__'
|
||||
tagName: 'PakePlus-v__VERSION__'
|
||||
releaseName: 'PakePlus v__VERSION__'
|
||||
body_path: ./Note.md
|
||||
releaseDraft: true
|
||||
prerelease: false
|
||||
args: ''
|
||||
args: ''
|
||||
|
||||
2
.github/back/test.yml
vendored
2
.github/back/test.yml
vendored
@@ -77,7 +77,7 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
releaseName: 'PacBao Test'
|
||||
releaseName: 'PakePlus Test'
|
||||
releaseBody: 'This is a draft version'
|
||||
releaseDraft: true
|
||||
prerelease: false
|
||||
|
||||
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -195,8 +195,8 @@ jobs:
|
||||
VITE_FILE_LIMIT_NUMBER: ${{ secrets.VITE_FILE_LIMIT_NUMBER }}
|
||||
VITE_LOCAL_RHEXE: ${{ secrets.VITE_LOCAL_RHEXE }}
|
||||
with:
|
||||
tagName: 'PacBao-v__VERSION__'
|
||||
releaseName: 'PacBao v__VERSION__'
|
||||
tagName: 'PakePlus-v__VERSION__'
|
||||
releaseName: 'PakePlus v__VERSION__'
|
||||
body_path: ./Note.md
|
||||
releaseDraft: true
|
||||
prerelease: false
|
||||
|
||||
10
Note.md
10
Note.md
@@ -17,12 +17,12 @@
|
||||
### Web beta
|
||||
|
||||
- Not recommended as it is a beta version.(不推荐,因为是 beta 版本)
|
||||
- https://PacBao.pages.dev
|
||||
- https://PacBao.netlify.app
|
||||
- https://PakePlus.pages.dev
|
||||
- https://PakePlus.netlify.app
|
||||
|
||||
### Document(使用文档)
|
||||
|
||||
- https://ppofficial.netlify.app/guide/
|
||||
- https://sjj1024.github.io/PacBao/guide/
|
||||
- https://www.PacBao.com/guide/
|
||||
- https://PacBao.vercel.app/guide/
|
||||
- https://sjj1024.github.io/PakePlus/guide/
|
||||
- https://www.PakePlus.com/guide/
|
||||
- https://PakePlus.vercel.app/guide/
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<link rel="icon" type="image/svg+xml" href="/app.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<script src="/vconsole.min.js"></script>
|
||||
<title>PacBao</title>
|
||||
<title>PakePlus</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@@ -48,15 +48,15 @@ jobs:
|
||||
- name: Rename APK file
|
||||
run: |
|
||||
cd app/build/outputs/apk/debug/
|
||||
mv app-debug.apk PacBao-v0.0.1.apk
|
||||
mv app-debug.apk PakePlus-v0.0.1.apk
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: app/build/outputs/apk/debug/*.apk
|
||||
tag_name: 'PacBao-v0.0.1'
|
||||
name: 'PacBao v0.0.1'
|
||||
body: 'PacBao ReleaseBody'
|
||||
tag_name: 'PakePlus-v0.0.1'
|
||||
name: 'PakePlus v0.0.1'
|
||||
body: 'PakePlus ReleaseBody'
|
||||
draft: false
|
||||
publish: true
|
||||
env:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
console.log(
|
||||
'%cbuild from PacBao: https://github.com/Sjj1024/PacBao',
|
||||
'%cbuild from PakePlus https://github.com/Sjj1024/PakePlus',
|
||||
'color:orangered;font-weight:bolder'
|
||||
)
|
||||
|
||||
|
||||
@@ -46,12 +46,12 @@ jobs:
|
||||
echo "Installing appicon tool..."
|
||||
brew install Nonchalant/appicon/appicon
|
||||
echo "Generating AppIcon..."
|
||||
appicon PacBao.png --output-path ./PacBao/Assets.xcassets/AppIcon.appiconset
|
||||
appicon PakePlus.png --output-path ./PakePlus/Assets.xcassets/AppIcon.appiconset
|
||||
|
||||
- name: Update App Name
|
||||
run: |
|
||||
echo "Updating App Name..."
|
||||
plutil -replace CFBundleDisplayName -string "派克Plus" ./PacBao/Info.plist
|
||||
plutil -replace CFBundleDisplayName -string "派克Plus" ./PakePlus/Info.plist
|
||||
|
||||
- name: Build IPA Package
|
||||
run: |
|
||||
@@ -70,8 +70,8 @@ jobs:
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: ${{ env.ipa_path }}
|
||||
tag_name: 'PacBao-v1.0.0'
|
||||
body: 'PacBao-v1.0.0'
|
||||
tag_name: 'PakePlus-v1.0.0'
|
||||
body: 'PakePlus-v1.0.0'
|
||||
draft: false
|
||||
publish: true
|
||||
env:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
[FILENAMES]
|
||||
Exe= "PacBao.exe"
|
||||
Exe= "PakePlus.exe"
|
||||
SaveAs= "Target.exe"
|
||||
Log= "rh.log"
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"short_name": "PacBao",
|
||||
"name": "PacBao",
|
||||
"short_name": "PakePlus",
|
||||
"name": "PakePlus",
|
||||
"icons": [
|
||||
{
|
||||
"src": "./assets/128x128.png",
|
||||
@@ -26,21 +26,21 @@
|
||||
"theme_color": "#3367D6",
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": "PacBao",
|
||||
"short_name": "PacBao",
|
||||
"description": "PacBao",
|
||||
"name": "PakePlus",
|
||||
"short_name": "PakePlus",
|
||||
"description": "PakePlus",
|
||||
"url": "/",
|
||||
"icons": [{ "src": "./assets/128x128.png", "sizes": "128x128" }]
|
||||
},
|
||||
{
|
||||
"name": "PacBao",
|
||||
"short_name": "PacBao",
|
||||
"description": "PacBao",
|
||||
"name": "PakePlus",
|
||||
"short_name": "PakePlus",
|
||||
"description": "PakePlus",
|
||||
"url": "/",
|
||||
"icons": [{ "src": "./assets/128x128.png", "sizes": "128x128" }]
|
||||
}
|
||||
],
|
||||
"description": "PacBao",
|
||||
"description": "PakePlus",
|
||||
"screenshots": [
|
||||
{
|
||||
"src": "./assets/128x128.png",
|
||||
|
||||
@@ -1,73 +1,83 @@
|
||||
addEventListener('fetch', event => {
|
||||
addEventListener('fetch', (event) => {
|
||||
event.respondWith(handleRequest(event.request))
|
||||
})
|
||||
|
||||
async function handleRequest(request) {
|
||||
})
|
||||
|
||||
async function handleRequest(request) {
|
||||
// 定义 GitHub 原始域名和你的加速域名
|
||||
const GITHUB_HOST = 'github.com'
|
||||
const GITHUB_RAW_HOST = 'raw.githubusercontent.com'
|
||||
const GITHUB_USER_CONTENT_HOST = 'githubusercontent.com'
|
||||
|
||||
|
||||
const url = new URL(request.url)
|
||||
|
||||
// 验证 URL 是否合法
|
||||
if (!url || !url.pathname.includes('PacBao')) {
|
||||
return new Response('Invalid PacBao release URL', { status: 400 })
|
||||
// 验证 URL 是否合法
|
||||
if (!url || !url.pathname.includes('PakePlus')) {
|
||||
return new Response('Invalid PakePlus release URL', { status: 400 })
|
||||
}
|
||||
|
||||
// 匹配 GitHub 资源路径
|
||||
if (url.pathname.startsWith('/gh/') || url.pathname.startsWith('/github/')) {
|
||||
// 构造新的 GitHub URL
|
||||
let newUrl = new URL(url.pathname.replace(/^\/gh\/|^\/github\//, ''), `https://${GITHUB_HOST}`)
|
||||
|
||||
// 处理 raw.githubusercontent.com 的请求
|
||||
if (url.pathname.includes('/raw/')) {
|
||||
newUrl = new URL(url.pathname.replace(/^\/gh\/|^\/github\//, ''), `https://${GITHUB_RAW_HOST}`)
|
||||
}
|
||||
|
||||
// 处理 user content 的请求
|
||||
if (url.hostname.includes(GITHUB_USER_CONTENT_HOST)) {
|
||||
newUrl = new URL(url.pathname, `https://${GITHUB_USER_CONTENT_HOST}`)
|
||||
}
|
||||
|
||||
// 复制原始请求的 headers
|
||||
const headers = new Headers(request.headers)
|
||||
|
||||
// 修改必要的 headers
|
||||
headers.set('Host', newUrl.hostname)
|
||||
headers.delete('Referer')
|
||||
|
||||
// 发起代理请求
|
||||
const response = await fetch(newUrl.toString(), {
|
||||
method: request.method,
|
||||
headers: headers,
|
||||
body: request.body
|
||||
})
|
||||
|
||||
// 复制 GitHub 的响应 headers
|
||||
const newHeaders = new Headers(response.headers)
|
||||
|
||||
// 设置 CORS 头(可选)
|
||||
newHeaders.set('Access-Control-Allow-Origin', '*')
|
||||
|
||||
// 缓存设置(建议缓存 GitHub 资源)
|
||||
newHeaders.set('Cache-Control', 'public, max-age=14400') // 4小时缓存
|
||||
|
||||
return new Response(response.body, {
|
||||
status: response.status,
|
||||
statusText: response.statusText,
|
||||
headers: newHeaders
|
||||
})
|
||||
if (
|
||||
url.pathname.startsWith('/gh/') ||
|
||||
url.pathname.startsWith('/github/')
|
||||
) {
|
||||
// 构造新的 GitHub URL
|
||||
let newUrl = new URL(
|
||||
url.pathname.replace(/^\/gh\/|^\/github\//, ''),
|
||||
`https://${GITHUB_HOST}`
|
||||
)
|
||||
|
||||
// 处理 raw.githubusercontent.com 的请求
|
||||
if (url.pathname.includes('/raw/')) {
|
||||
newUrl = new URL(
|
||||
url.pathname.replace(/^\/gh\/|^\/github\//, ''),
|
||||
`https://${GITHUB_RAW_HOST}`
|
||||
)
|
||||
}
|
||||
|
||||
// 处理 user content 的请求
|
||||
if (url.hostname.includes(GITHUB_USER_CONTENT_HOST)) {
|
||||
newUrl = new URL(
|
||||
url.pathname,
|
||||
`https://${GITHUB_USER_CONTENT_HOST}`
|
||||
)
|
||||
}
|
||||
|
||||
// 复制原始请求的 headers
|
||||
const headers = new Headers(request.headers)
|
||||
|
||||
// 修改必要的 headers
|
||||
headers.set('Host', newUrl.hostname)
|
||||
headers.delete('Referer')
|
||||
|
||||
// 发起代理请求
|
||||
const response = await fetch(newUrl.toString(), {
|
||||
method: request.method,
|
||||
headers: headers,
|
||||
body: request.body,
|
||||
})
|
||||
|
||||
// 复制 GitHub 的响应 headers
|
||||
const newHeaders = new Headers(response.headers)
|
||||
|
||||
// 设置 CORS 头(可选)
|
||||
newHeaders.set('Access-Control-Allow-Origin', '*')
|
||||
|
||||
// 缓存设置(建议缓存 GitHub 资源)
|
||||
newHeaders.set('Cache-Control', 'public, max-age=14400') // 4小时缓存
|
||||
|
||||
return new Response(response.body, {
|
||||
status: response.status,
|
||||
statusText: response.statusText,
|
||||
headers: newHeaders,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 如果不是 GitHub 资源请求,返回默认响应
|
||||
return new Response('Not a GitHub resource request', { status: 404 })
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// 原始链接
|
||||
// https://github.com/Aniooy/PacBao/releases/download/ChatGPT/ChatGPT_0.0.1_x64-setup.exe
|
||||
// https://github.com/Aniooy/PakePlus/releases/download/ChatGPT/ChatGPT_0.0.1_x64-setup.exe
|
||||
|
||||
// 加速链接
|
||||
// https://github.PacBao.com/gh/Aniooy/PacBao/releases/download/ChatGPT/ChatGPT_0.0.1_x64-setup.exe
|
||||
// https://github.PakePlus.com/gh/Aniooy/PakePlus/releases/download/ChatGPT/ChatGPT_0.0.1_x64-setup.exe
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<h1>Welcome to TauriMan</h1>
|
||||
<div class="row">
|
||||
<a
|
||||
href="https://www.PacBao.com"
|
||||
href="https://www.PakePlus.com"
|
||||
target="_blank"
|
||||
rel="noopener"
|
||||
>
|
||||
|
||||
@@ -5,7 +5,7 @@ import json
|
||||
|
||||
|
||||
def get_issue(keyword):
|
||||
url = f"https://api.github.com/search/issues?q={keyword}+state:open+in:title+repo:Sjj1024/PacBao"
|
||||
url = f"https://api.github.com/search/issues?q={keyword}+state:open+in:title+repo:Sjj1024/PakePlus"
|
||||
headers = {
|
||||
'Authorization': f'Bearer {os.environ.get("TOKEN")}'
|
||||
}
|
||||
@@ -20,7 +20,7 @@ def get_issue(keyword):
|
||||
|
||||
|
||||
def close_issue(num, state, labels):
|
||||
url = f"https://api.github.com/repos/Sjj1024/PacBao/issues/{num}"
|
||||
url = f"https://api.github.com/repos/Sjj1024/PakePlus/issues/{num}"
|
||||
payload = json.dumps({
|
||||
"state": state,
|
||||
"labels": labels
|
||||
|
||||
@@ -118,11 +118,11 @@
|
||||
}
|
||||
},
|
||||
"ios": {
|
||||
"name": "PacBao",
|
||||
"showName": "PacBao",
|
||||
"name": "PakePlus",
|
||||
"showName": "PakePlus",
|
||||
"version": "0.0.1",
|
||||
"webUrl": "https://juejin.cn/",
|
||||
"id": "com.xiaoshen.PacBao.ios",
|
||||
"id": "com.xiaoshen.PakePlus.ios",
|
||||
"icon": "./app-icon.png",
|
||||
"desc": "Package for personal use only, please do not use for commercial purposes(打包仅限个人使用,请勿传播或商业用途)",
|
||||
"pubBody": "Package for personal use only, please do not use for commercial purposes(打包仅限个人使用,请勿传播或商业用途)",
|
||||
@@ -130,11 +130,11 @@
|
||||
"debug": false
|
||||
},
|
||||
"android": {
|
||||
"name": "PacBao",
|
||||
"showName": "PacBao",
|
||||
"name": "PakePlus",
|
||||
"showName": "PakePlus",
|
||||
"version": "0.0.1",
|
||||
"webUrl": "https://juejin.cn/",
|
||||
"id": "com.xiaoshen.PacBao.android",
|
||||
"id": "com.xiaoshen.PakePlus.android",
|
||||
"icon": "./app-icon.png",
|
||||
"input": "./app-icon.png",
|
||||
"output": "./res",
|
||||
@@ -147,7 +147,7 @@
|
||||
"debug": false
|
||||
},
|
||||
"desktop": {
|
||||
"name": "PacBao2",
|
||||
"name": "PakePlus",
|
||||
"showName": "xiaoshen",
|
||||
"version": "0.0.2",
|
||||
"id": "com.xiaoshen.app",
|
||||
|
||||
@@ -2,15 +2,16 @@
|
||||
|
||||
ppupdate.json in docs public
|
||||
|
||||
download github release latest.json file and then edit latest.json to ppupdate.json and upload to github release
|
||||
download github release latest.json file and then edit latest.json to ppupdate.json and upload to github release
|
||||
|
||||
```bash
|
||||
https://github.com/Sjj1024/PacBao/releases/download/PacBao-v0.5.28
|
||||
https://github.com/Sjj1024/PakePlus/releases/download/PakePlus-v0.5.28
|
||||
|
||||
https://gh-proxy.com/github.com/Sjj1024/PacBao/releases/latest/download
|
||||
https://gh-proxy.com/github.com/Sjj1024/PakePlus/releases/latest/download
|
||||
```
|
||||
|
||||
add notes
|
||||
|
||||
```bash
|
||||
"force": false,
|
||||
"zh": "更新一下",
|
||||
@@ -20,7 +21,6 @@ add notes
|
||||
"zhTw": "更新一下",
|
||||
```
|
||||
|
||||
|
||||
# Notes
|
||||
|
||||
ppnotes.json in docs public
|
||||
@@ -29,4 +29,4 @@ show set true
|
||||
|
||||
zh: notes content
|
||||
|
||||
if set openUrl, then click ok will open url
|
||||
if set openUrl, then click ok will open url
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
"https://payjs.cn/*",
|
||||
"https://zpayz.cn/*",
|
||||
"https://api.pay.yungouos.com/*",
|
||||
"https://apis.PacBao.com/*"
|
||||
"https://apis.PakePlus.com/*"
|
||||
]
|
||||
},
|
||||
"permissions": [
|
||||
@@ -111,7 +111,7 @@
|
||||
"url": "https://api.pay.yungouos.com/**"
|
||||
},
|
||||
{
|
||||
"url": "https://apis.PacBao.com/**"
|
||||
"url": "https://apis.PakePlus.com/**"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
console.log(
|
||||
'%cbuild from PacBao: https://github.com/Sjj1024/PacBao',
|
||||
'%cbuild from PakePlus https://github.com/Sjj1024/PakePlus',
|
||||
'color:orangered;font-weight:bolder'
|
||||
)
|
||||
|
||||
|
||||
@@ -554,8 +554,8 @@ pub async fn macos_build(
|
||||
let info_plist_source = exe_parent_dir.join("Info.plist");
|
||||
let info_plist_target = base_path.join("Contents/Info.plist");
|
||||
fs::copy(&info_plist_source, &info_plist_target).expect("copy info.plist failed");
|
||||
let pp_app_target = base_path.join("Contents/MacOS/PacBao");
|
||||
fs::copy(&exe_path, &pp_app_target).expect("copy PacBao app failed");
|
||||
let pp_app_target = base_path.join("Contents/MacOS/PakePlus");
|
||||
fs::copy(&exe_path, &pp_app_target).expect("copy PakePlus app failed");
|
||||
let man_path = base_path.join("Contents/MacOS/config/man");
|
||||
fs::write(man_path, config).expect("write man failed");
|
||||
if !base64_png.is_empty() {
|
||||
|
||||
@@ -42,7 +42,7 @@ pub async fn resolve_setup(app: &mut App) -> Result<(), Error> {
|
||||
let app_handle = app.handle();
|
||||
let window_json = r#"
|
||||
{
|
||||
"title": "PacBao",
|
||||
"title": "PakePlus",
|
||||
"visible": false,
|
||||
"url": "index.html",
|
||||
"width": 1024,
|
||||
|
||||
Reference in New Issue
Block a user