mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 05:03:45 +08:00
feat: Add AppImage for x86 linux
This commit is contained in:
parent
d8b2e08717
commit
b8688e2e66
2
.github/build-for-linux/build.sh
vendored
2
.github/build-for-linux/build.sh
vendored
@ -2,7 +2,7 @@
|
|||||||
pnpm install
|
pnpm install
|
||||||
pnpm check $INPUT_TARGET
|
pnpm check $INPUT_TARGET
|
||||||
sed -i "s/#openssl/openssl={version=\"0.10\",features=[\"vendored\"]}/g" src-tauri/Cargo.toml
|
sed -i "s/#openssl/openssl={version=\"0.10\",features=[\"vendored\"]}/g" src-tauri/Cargo.toml
|
||||||
if [ "$INPUT_TARGET" = "x86_64-unknown-linux-gnu" ]; then
|
if [ "$INPUT_TARGET" = "x86_64-unknown-linux-gnu" ] || [ "$INPUT_TARGET" = "i686-unknown-linux-gnu" ]; then
|
||||||
pnpm build --target $INPUT_TARGET
|
pnpm build --target $INPUT_TARGET
|
||||||
else
|
else
|
||||||
pnpm build --target $INPUT_TARGET -b deb
|
pnpm build --target $INPUT_TARGET -b deb
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -117,7 +117,7 @@ jobs:
|
|||||||
sudo apt-get install jq
|
sudo apt-get install jq
|
||||||
echo "VERSION=$(cat package.json | jq '.version' | tr -d '"')" >> $GITHUB_ENV
|
echo "VERSION=$(cat package.json | jq '.version' | tr -d '"')" >> $GITHUB_ENV
|
||||||
- name: Upload Release
|
- name: Upload Release
|
||||||
if: startsWith(matrix.target, 'x86_64')
|
if: startsWith(matrix.target, 'x86_64') || startsWith(matrix.target, 'i686')
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
tag_name: v${{env.VERSION}}
|
tag_name: v${{env.VERSION}}
|
||||||
|
@ -45,6 +45,7 @@ async function resolveUpdater() {
|
|||||||
"darwin-intel": { signature: "", url: "" },
|
"darwin-intel": { signature: "", url: "" },
|
||||||
"darwin-x86_64": { signature: "", url: "" },
|
"darwin-x86_64": { signature: "", url: "" },
|
||||||
"linux-x86_64": { signature: "", url: "" },
|
"linux-x86_64": { signature: "", url: "" },
|
||||||
|
"linux-i686": { signature: "", url: "" },
|
||||||
"linux-aarch64": { signature: "", url: "" },
|
"linux-aarch64": { signature: "", url: "" },
|
||||||
"windows-x86_64": { signature: "", url: "" },
|
"windows-x86_64": { signature: "", url: "" },
|
||||||
"windows-i686": { signature: "", url: "" },
|
"windows-i686": { signature: "", url: "" },
|
||||||
@ -100,16 +101,16 @@ async function resolveUpdater() {
|
|||||||
updateData.platforms["darwin-aarch64"].signature = sig;
|
updateData.platforms["darwin-aarch64"].signature = sig;
|
||||||
}
|
}
|
||||||
|
|
||||||
// linux url
|
// linux x64 url
|
||||||
if (name.endsWith(".AppImage.tar.gz")) {
|
if (name.endsWith("amd64.AppImage.tar.gz")) {
|
||||||
updateData.platforms.linux.url = browser_download_url;
|
updateData.platforms.linux.url = browser_download_url;
|
||||||
updateData.platforms["linux-x86_64"].url = browser_download_url;
|
updateData.platforms["linux-x86_64"].url = browser_download_url;
|
||||||
// 暂时使用x64版本的url和sig,使得可以检查更新,但aarch64版本还不支持构建appimage
|
// 暂时使用x64版本的url和sig,使得可以检查更新,但aarch64版本还不支持构建appimage
|
||||||
updateData.platforms["linux-aarch64"].url = browser_download_url;
|
updateData.platforms["linux-aarch64"].url = browser_download_url;
|
||||||
// updateData.platforms["linux-armv7"].url = browser_download_url;
|
// updateData.platforms["linux-armv7"].url = browser_download_url;
|
||||||
}
|
}
|
||||||
// linux signature
|
// linux x64 signature
|
||||||
if (name.endsWith(".AppImage.tar.gz.sig")) {
|
if (name.endsWith("amd64.AppImage.tar.gz.sig")) {
|
||||||
const sig = await getSignature(browser_download_url);
|
const sig = await getSignature(browser_download_url);
|
||||||
updateData.platforms.linux.signature = sig;
|
updateData.platforms.linux.signature = sig;
|
||||||
updateData.platforms["linux-x86_64"].signature = sig;
|
updateData.platforms["linux-x86_64"].signature = sig;
|
||||||
@ -117,6 +118,16 @@ async function resolveUpdater() {
|
|||||||
updateData.platforms["linux-aarch64"].signature = sig;
|
updateData.platforms["linux-aarch64"].signature = sig;
|
||||||
// updateData.platforms["linux-armv7"].signature = sig;
|
// updateData.platforms["linux-armv7"].signature = sig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// linux x86 url
|
||||||
|
if (name.endsWith("i386.AppImage.tar.gz")) {
|
||||||
|
updateData.platforms["linux-i686"].url = browser_download_url;
|
||||||
|
}
|
||||||
|
// linux x86 signature
|
||||||
|
if (name.endsWith("i386.AppImage.tar.gz.sig")) {
|
||||||
|
const sig = await getSignature(browser_download_url);
|
||||||
|
updateData.platforms["linux-i686"].signature = sig;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
await Promise.allSettled(promises);
|
await Promise.allSettled(promises);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user