Skip to content

Commit

Permalink
feat: appimage for loongarch
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed May 18, 2024
1 parent a02648b commit c08abdf
Show file tree
Hide file tree
Showing 6 changed files with 7,895 additions and 65 deletions.
10 changes: 3 additions & 7 deletions conf/loongarch-build.json → conf/build.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"extensions",
"app/app-update.yml"
],
"electronVersion": "22.3.27",
"electronVersion": "21.3.3",
"appId": "com.bilibili.app",
"mac": {
"target": [
Expand All @@ -40,17 +40,13 @@
},
"linux": {
"target": [
"rpm",
"deb"
"AppImage",
"rpm"
],
"maintainer": "msojocs <[email protected]> (https://www.jysafe.cn)",
"icon": "res/icons",
"synopsis": "BiliBili client for Linux.",
"description": "BiliBili client for Linux with roaming.",
"category": "AudioVideo"
},
"electronDownload": {
"mirror": "https://github.com/msojocs/electron-loongarch/releases/download/",
"customDir": "v22.3.27"
}
}
64 changes: 7 additions & 57 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,64 +3,12 @@
"version": "1.12.5-2",
"description": "bilibili client",
"main": "index.js",
"build": {
"buildVersion": "1",
"directories": {
"output": "tmp/build",
"app": "app/app"
},
"asar": true,
"files": [
"**/*",
{
"from": "node_modules",
"to": "node_modules"
}
],
"extraResources": [
"extensions",
"app/app-update.yml"
],
"electronVersion": "21.3.3",
"appId": "com.bilibili.app",
"mac": {
"target": [
"dmg",
"zip"
],
"icon": "res/icons/bilibili.icns"
},
"win": {
"target": [
"nsis"
],
"icon": "res/icons/bilibili.ico"
},
"nsis": {
"oneClick": false,
"installerIcon": "res/icons/bilibili.ico",
"uninstallerIcon": "res/icons/bilibili.ico",
"installerHeaderIcon": "res/icons/bilibili.ico",
"allowToChangeInstallationDirectory": true
},
"linux": {
"target": [
"AppImage",
"rpm"
],
"maintainer": "msojocs <[email protected]> (https://www.jysafe.cn)",
"icon": "res/icons",
"synopsis": "BiliBili client for Linux.",
"description": "BiliBili client for Linux with roaming.",
"category": "AudioVideo"
}
},
"scripts": {
"pkg-win": "electron-builder --win --x64 --arm64",
"pkg-mac": "electron-builder --mac --x64",
"pkg-linux": "electron-builder --linux --x64 --arm64",
"pkg-loongarch": "tools/fix-build-loongarch.js && electron-builder --linux --loong64 --loongarch64 -c conf/loongarch-build.json",
"test": "echo \"Error: no test specified\" && exit 1"
"pkg-win": "electron-builder --win --x64 --arm64 -c conf/build.json",
"pkg-mac": "electron-builder --mac --x64 -c conf/build.json",
"pkg-linux": "electron-builder --linux --x64 --arm64 -c conf/build.json",
"pkg-loongarch": "node tools/build-loongarch.js",
"test": "node tools/build-loongarch.js"
},
"repository": {
"type": "git",
Expand All @@ -76,6 +24,8 @@
},
"homepage": "https://github.com/msojocs/bilibili-linux#readme",
"devDependencies": {
"app-builder-bin": "5.0.0-alpha.3",
"app-builder-lib": "24.13.3",
"builder-util": "24.13.1",
"electron-builder": "^24.13.3"
}
Expand Down
19 changes: 19 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c08abdf

Please sign in to comment.