Skip to content

Commit

Permalink
[change] npm pkg && readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiram committed Jan 13, 2025
1 parent db43f8e commit 16093d5
Show file tree
Hide file tree
Showing 3 changed files with 343 additions and 308 deletions.
46 changes: 12 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
<img width="128" src="https://s2.loli.net/2024/02/29/7Q1nVbhkHdSmo5D.png" >
</p>
<p align="center">
<a href="https://github.com/Hiram-Wong/ZyPlayer/wiki" target="_blank">文档</a>
<a href="https://zy.catni.cn" target="_blank">文档</a>
<a href="https://github.com/Hiram-Wong/ZyPlayer/wiki" target="_blank">维基</a>
<a href="https://github.com/Hiram-Wong/ZyPlayer/issues" target="_blank">反馈</a>
<a href="https://github.com/Hiram-Wong/ZyPlayer/releases" target="_blank">下载</a>
</p>
Expand All @@ -19,8 +20,6 @@

**重要提醒**: 在开始使用前,请务必详读并同意用户协议,确保遵守相关规定!

雨云id: 555409

<details>
<summary>展开查看用户协议及免责申明</summary>
感谢您选择使用zyfun(以下简称本软件),在使用产品和服务之前,请您仔细阅读和理解以下声明:
Expand Down Expand Up @@ -95,14 +94,20 @@
- 提供 arm64(苹果芯)、x64(英特尔芯) 及 universal(通用) 三种架构安装包
- 日志路径: `~/Library/Logs/{appname}/`
- 数据库路径: `~/Library/Application\ Support/{appname}/database/`
- 插件路径: `~/Library/Application\ Support/{appname}/plugin/`
- 文件路径: `~/Library/Application\ Support/{appname}/file/`
- **Linux**:
- 针对 arm64、x64 架构发行 image、deb、rpm 安装包
- 日志路径: `~/.config/{appname}/logs/`
- 数据库路径: `~/.config/{appname}/database/`
- 插件路径: `~/.config/{appname}/plugin/`
- 文件路径: `~/.config/{appname}/file/`
- **Windows**:
- 支持 arm64、x64、ia32,以及通用版本
- 日志路径: `%USERPROFILE%\AppData\Roaming\{appname}\logs\`
- 数据库路径: `%USERPROFILE%\AppData\Roaming\{appname}\database\`
- 插件路径: `%USERPROFILE%\AppData\Roaming\{appname}\plugin\`
- 文件路径: `%USERPROFILE%\AppData\Roaming\{appname}\file\`

## 🛠️ 下载与安装

Expand All @@ -121,45 +126,18 @@
sudo spctl --master-disable
[2] 执行下面命令放行软件 :
sudo xattr -cr /Applications/{appname}.app

完成上面两个步骤,大多数情况下都能正常打开应用。

ps:
如果提示以下内容:
option -r not recognized

usage: xattr [-slz] file [file ...]
xattr -p [-slz] attr_name file [file ...]
xattr -w [-sz] attr_name attr_value file [file ...]
xattr -d [-s] attr_name file [file ...]
xattr -c [-s] file [file ...]

The first form lists the names of all xattrs on the given file(s).
The second form (-p) prints the value of the xattr attr_name.
The third form (-w) sets the value of the xattr attr_name to attr_value.
The fourth form (-d) deletes the xattr attr_name.
The fifth form (-c) deletes (clears) all xattrs.

options:
-h: print this help
-s: act on symbolic links themselves rather than their targets
-l: print long format (attr_name: attr_value)
-z: compress or decompress (if compressed) attribute value in zip format

则执行命令
xattr -c /Applications/{appname}.app/*
如果上述命令依然没有效果,可以尝试下面的命令:
sudo xattr -d com.apple.quarantine /Applications/{appname}.app/
```

### Linux Appimage桌面快捷方式设置

```bash
> {appname}为软件名

[1] 选择一张icon图标下载
[2] 在任意位置新建一个名为{appname}.desktop的文件,并写入如下内容
[Desktop Entry]
Name={appname}
Exec=/home/xxx/Downloads/{appname}-3.3.8.AppImage # AppImage程序路径
Exec=/home/xxx/Downloads/{appname}.AppImage # AppImage程序路径
Icon=/home/xxx/Downloads/{appname}.png # 图标路径
Type=Application
StartupNotify=true
Expand All @@ -183,7 +161,7 @@ sudo xattr -d com.apple.quarantine /Applications/{appname}.app/
[7] 全局安装electron-vite框架
yarn add electron-vite -D
[8] 打包编译发布
yarn build:win[mac/linux]
yarn build:win[mac|linux]
ps:
- 同步库说明
Expand Down
44 changes: 23 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zyfun",
"version": "3.3.10-beta0106",
"version": "3.3.10-beta0114",
"description": "zyfun client",
"main": "./out/main/index.js",
"repository": {
Expand Down Expand Up @@ -47,9 +47,10 @@
"dependencies": {
"@electric-sql/pglite": "^0.2.15",
"@electron/remote": "^2.1.2",
"@types/validator": "^13.12.2",
"npm": "6.14.18",
"pglite-server": "^0.1.4",
"puppeteer-core": "^23.11.1",
"puppeteer-core": "^24.0.0",
"puppeteer-in-electron": "^3.0.5",
"sync-fetch": "^0.6.0-2",
"sync-request": "^6.1.0",
Expand All @@ -64,22 +65,22 @@
"@electron-uikit/contextmenu": "^1.0.0",
"@electron-uikit/titlebar": "^1.2.0",
"@fastify/cors": "^10.0.2",
"@fastify/multipart": "^9.0.1",
"@fastify/multipart": "^9.0.2",
"@imengyu/vue3-context-menu": "^1.4.4",
"@nplayer/danmaku": "^1.0.12",
"@rushstack/eslint-patch": "^1.10.4",
"@swc/core": "^1.10.4",
"@rushstack/eslint-patch": "^1.10.5",
"@swc/core": "^1.10.7",
"@tdesign-vue-next/chat": "^0.1.4",
"@types/cheerio": "^0.22.35",
"@types/electron-localshortcut": "^3.1.3",
"@types/fs-extra": "^11.0.4",
"@types/lodash": "^4.17.14",
"@types/node": "^22.10.5",
"@types/uuid": "^10.0.0",
"@types/web": "^0.0.188",
"@types/web": "^0.0.193",
"@vitejs/plugin-vue": "^5.2.1",
"@vitejs/plugin-vue-jsx": "^4.1.1",
"@vueuse/core": "12.3.0",
"@vueuse/core": "12.4.0",
"@xmldom/xmldom": "^0.9.6",
"artplayer": "^5.2.1",
"artplayer-plugin-danmuku": "^5.1.4",
Expand All @@ -91,16 +92,16 @@
"dplayer": "^1.27.1",
"drizzle-kit": "^0.30.1",
"drizzle-orm": "^0.38.3",
"electron": "^33.2.1",
"electron": "^33.3.1",
"electron-builder": "^25.1.8",
"electron-localshortcut": "^3.2.1",
"electron-log": "^5.2.4",
"electron-notarize": "^1.2.2",
"electron-updater": "^6.3.9",
"electron-vite": "^2.3.0",
"eslint": "^9.17.0",
"eslint": "^9.18.0",
"fast-xml-parser": "^4.5.1",
"fastify": "^5.2.0",
"fastify": "^5.2.1",
"fastify-logger": "^1.0.1",
"fastify-plugin": "^5.0.1",
"fix-path": "^4.0.0",
Expand All @@ -109,7 +110,7 @@
"fs-extra": "^11.2.0",
"he": "^1.2.0",
"highlight.js": "^11.11.1",
"hls.js": "^1.5.18",
"hls.js": "^1.5.19",
"husky": "^9.1.7",
"iconv-lite": "^0.6.3",
"ipaddr.js": "^2.2.0",
Expand All @@ -120,7 +121,7 @@
"less": "^4.2.1",
"lodash": "^4.17.21",
"luna-console": "^1.3.5",
"luna-data-grid": "^1.2.1",
"luna-data-grid": "^1.3.0",
"luna-dom-viewer": "^1.4.0",
"luna-object-viewer": "^0.3.1",
"markdown-it": "^14.1.0",
Expand All @@ -134,7 +135,7 @@
"node-rsa": "^1.1.1",
"nplayer": "^1.0.15",
"npm-check-updates": "^17.1.13",
"openai": "^4.77.3",
"openai": "^4.78.1",
"ora": "^8.1.1",
"p-queue": "^8.0.1",
"pako": "^2.1.0",
Expand All @@ -144,20 +145,21 @@
"qrcode.vue": "^3.6.0",
"querystring": "^0.2.1",
"resize-observer-polyfill": "^1.5.1",
"shaka-player": "^4.12.5",
"shaka-player": "^4.12.7",
"sm-crypto": "^0.3.13",
"smooth-scrollbar": "^8.8.4",
"stylelint": "^16.12.0",
"tdesign-icons-vue-next": "^0.3.3",
"stylelint": "^16.13.0",
"tdesign-icons-vue-next": "^0.3.4",
"tdesign-vue-next": "^1.10.6",
"tree-kill": "^1.2.2",
"typescript": "^5.7.2",
"unplugin-auto-import": "^0.19.0",
"unplugin-vue-components": "^0.28.0",
"uuid": "^11.0.4",
"typescript": "^5.7.3",
"unplugin-auto-import": "^19.0.0",
"unplugin-vue-components": "^28.0.0",
"uuid": "^11.0.5",
"v3-infinite-loading": "^1.3.2",
"validator": "^13.12.0",
"vite": "^6.0.7",
"vite-plugin-vue-devtools": "^7.6.8",
"vite-plugin-vue-devtools": "^7.7.0",
"vite-svg-loader": "^5.1.0",
"vue": "^3.5.13",
"vue-i18n": "^11.0.1",
Expand Down
Loading

0 comments on commit 16093d5

Please sign in to comment.