feat: update AIHubMix OAuth and release workflow configuration
This commit is contained in:
parent
59c4d60d6a
commit
0a4b360745
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
@ -70,6 +70,7 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
RENDERER_VITE_AIHUBMIX_SECRET: ${{ vars.RENDERER_VITE_AIHUBMIX_SECRET }}
|
||||||
|
|
||||||
- name: Build Mac
|
- name: Build Mac
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
@ -82,6 +83,7 @@ jobs:
|
|||||||
APPLE_ID: ${{ vars.APPLE_ID }}
|
APPLE_ID: ${{ vars.APPLE_ID }}
|
||||||
APPLE_APP_SPECIFIC_PASSWORD: ${{ vars.APPLE_APP_SPECIFIC_PASSWORD }}
|
APPLE_APP_SPECIFIC_PASSWORD: ${{ vars.APPLE_APP_SPECIFIC_PASSWORD }}
|
||||||
APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }}
|
APPLE_TEAM_ID: ${{ vars.APPLE_TEAM_ID }}
|
||||||
|
RENDERER_VITE_AIHUBMIX_SECRET: ${{ vars.RENDERER_VITE_AIHUBMIX_SECRET }}
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build Windows
|
- name: Build Windows
|
||||||
@ -89,6 +91,7 @@ jobs:
|
|||||||
run: yarn build:win
|
run: yarn build:win
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
RENDERER_VITE_AIHUBMIX_SECRET: ${{ vars.RENDERER_VITE_AIHUBMIX_SECRET }}
|
||||||
|
|
||||||
- name: Replace spaces in filenames
|
- name: Replace spaces in filenames
|
||||||
run: node scripts/replace-spaces.js
|
run: node scripts/replace-spaces.js
|
||||||
|
|||||||
@ -167,7 +167,7 @@ export class WindowService {
|
|||||||
const oauthProviderUrls = [
|
const oauthProviderUrls = [
|
||||||
'https://account.siliconflow.cn/oauth',
|
'https://account.siliconflow.cn/oauth',
|
||||||
'https://cloud.siliconflow.cn/expensebill',
|
'https://cloud.siliconflow.cn/expensebill',
|
||||||
'https://aihubmix.com/oauth',
|
'https://aihubmix.com/token',
|
||||||
'https://aihubmix.com/topup'
|
'https://aihubmix.com/topup'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ export const oauthWithSiliconFlow = async (setKey) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const oauthWithAihubmix = async (setKey) => {
|
export const oauthWithAihubmix = async (setKey) => {
|
||||||
const authUrl = ` https://aihubmix.com/oauth?client_id=cherry_studio_oauth&lang=${getLanguageCode()}&aff=SJyh`
|
const authUrl = ` https://aihubmix.com/token?client_id=cherry_studio_oauth&lang=${getLanguageCode()}&aff=SJyh`
|
||||||
|
|
||||||
const popup = window.open(
|
const popup = window.open(
|
||||||
authUrl,
|
authUrl,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user