mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
feat: add instructions to block update for qqmusic mac 8.8.0
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Light as SyntaxHighlighter } from 'react-syntax-highlighter';
|
||||
import hljsStyleGitHub from 'react-syntax-highlighter/dist/esm/styles/hljs/github';
|
||||
import { CodeHighlight } from '../CodeHighlight';
|
||||
import { ExtLink } from '../ExtLink';
|
||||
import PowerShellAdbDumpCommandTemplate from './adb_dump.ps1?raw';
|
||||
import ShellAdbDumpCommandTemplate from './adb_dump.sh?raw';
|
||||
@@ -45,9 +44,7 @@ export function AdbInstructionTemplate({ dir, file, platform }: AdbInstructionTe
|
||||
<li>将安卓设备连接到电脑。</li>
|
||||
<li>
|
||||
<p>粘贴执行下述代码执行。若设备提示「是否允许 USB 调试」或「超级用户请求」,选择允许:</p>
|
||||
<SyntaxHighlighter language={language} style={hljsStyleGitHub}>
|
||||
{command}
|
||||
</SyntaxHighlighter>
|
||||
<CodeHighlight language={language}>{command}</CodeHighlight>
|
||||
<br />※ 安卓模拟器可能需要额外操作,如
|
||||
<ExtLink className="text-nowrap" href="https://g.126.fm/04jewvw">
|
||||
网易 MuMu 模拟器
|
||||
|
||||
10
src/components/CodeHighlight.tsx
Normal file
10
src/components/CodeHighlight.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Light as SyntaxHighlighter, type SyntaxHighlighterProps } from 'react-syntax-highlighter';
|
||||
import hljsStyleGitHub from 'react-syntax-highlighter/dist/esm/styles/hljs/github';
|
||||
|
||||
export function CodeHighlight({ children, ...props }: SyntaxHighlighterProps) {
|
||||
return (
|
||||
<SyntaxHighlighter style={hljsStyleGitHub} {...props}>
|
||||
{children}
|
||||
</SyntaxHighlighter>
|
||||
);
|
||||
}
|
||||
@@ -6,6 +6,8 @@ import { VQuote } from '~/components/HelpText/VQuote';
|
||||
import { MacCommandKey } from '~/components/Key/MacCommandKey';
|
||||
import { ShiftKey } from '~/components/Key/ShiftKey';
|
||||
|
||||
import BlockUpdateScript from './assets/QQ 音乐 Mac 屏蔽升级.tar.gz?base64';
|
||||
|
||||
const MAC_CLIENT_URL =
|
||||
'https://web.archive.org/web/20230903/https://dldir1.qq.com/music/clntupate/mac/QQMusicMac_Mgr.dmg';
|
||||
const MAC_CLIENT_TG_URL = 'https://t.me/um_lsr_ch/21';
|
||||
@@ -43,6 +45,19 @@ export function InstructionsMac() {
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p className="mt-4">
|
||||
有部分用户发现现在会强制更新。你可以下载
|
||||
<ExtLink
|
||||
className="link-info mx-1"
|
||||
download="QQ 音乐 Mac 屏蔽升级.tar.gz"
|
||||
href={`data:application/gzip;base64,${BlockUpdateScript}`}
|
||||
>
|
||||
QQ 音乐 Mac 屏蔽升级.tar.gz
|
||||
</ExtLink>
|
||||
,然后执行 <code>QQ 音乐 Mac 屏蔽升级.command</code>。 其原理是修改 QQ
|
||||
音乐的版本号,让其认为自己是最新版本,从而屏蔽更新。
|
||||
</p>
|
||||
|
||||
<p className="mt-4">密钥文件通常存储在下述路径:</p>
|
||||
<FilePathBlock>{DB_PATH}</FilePathBlock>
|
||||
|
||||
|
||||
BIN
src/features/settings/panels/QMCv2/assets/QQ 音乐 Mac 屏蔽升级.tar.gz
Normal file
BIN
src/features/settings/panels/QMCv2/assets/QQ 音乐 Mac 屏蔽升级.tar.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user