Skip to content

Commit

Permalink
🐛 Fix: fix picbed config page scroll bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuingsmile committed Mar 7, 2023
1 parent ab48363 commit d515cc5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 58 deletions.
54 changes: 1 addition & 53 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,56 +75,4 @@ PicList 在 Mac 上是一个顶部栏应用,在 dock 栏是不会有图标的

## 11. macOS系统安装完PicList显示「文件已损坏」或者安装完打开没有反应

因为 PicList 没有签名,所以会被 macOS 的安全检查所拦下。

1. 安装后打开遇到「文件已损坏」的情况,请按如下方式操作:

信任开发者,会要求输入密码:

```bash
sudo spctl --master-disable
```

然后放行 PicList :

```bash
xattr -cr /Applications/PicList.app
```

然后就能正常打开。

如果提示以下内容

```sh
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
```

执行命令

```bash
xattr -c /Applications/PicList.app/*
```

如果上述命令依然没有效果,可以尝试下面的命令:

```bash
sudo xattr -d com.apple.quarantine /Applications/PicList.app/
```
请升级PicList 1.4.1或以上版本,自1.4.1开始,PicList已经经过Apple的签名,不会再出现这种情况。
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ PicList的内核使用的是原版PicGo-Core基础上修改的[PicList-core](htt
- 管理界面使用内置数据库缓存目录,加速目录加载速度
- 对于私有存储桶等支持复制预签名链接进行分享
- 优化了PicGo的界面,解锁了窗口大小限制,同时美化了部分界面布局
- mac平台安装包已签名,从源头解决了PicGo上的安装包已损坏的日经问题

## 已支持平台

Expand All @@ -57,11 +58,9 @@ PicList的内核使用的是原版PicGo-Core基础上修改的[PicList-core](htt

### Mac特殊说明

如果macOS系统安装完PicList显示「文件已损坏」或者安装完打开没有反应,请参考[FAQ说明](https://github.com/Kuingsmile/PicList/blob/dev/FAQ.md)的第11条,或者直接尝试下面的命令:
如果macOS系统安装完PicList显示「文件已损坏」或者安装完打开没有反应,请升级到PicList V1.4.1以上版本。

```bash
sudo xattr -d com.apple.quarantine /Applications/PicList.app/
```
从V1.4.1版本开始,所有的mac安装包均经过了我的开发者证书签名,不会再被macOS系统识别为「恶意软件」,不会再出现「文件已损坏」的提示。

## 应用截图

Expand Down
3 changes: 3 additions & 0 deletions src/renderer/pages/picbeds/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ export default {
</script>
<style lang='stylus'>
#picbeds-page
height 100%
overflow-y auto
overflow-x hidden
.setting-list
height 100%
overflow-y auto
Expand Down
2 changes: 1 addition & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const config = {
builderOptions: {
productName: 'PicList',
appId: 'com.kuingsmile.piclist',
afterSign: "scripts/notarize.js",
afterSign: 'scripts/notarize.js',
publish: [
{
provider: 'github',
Expand Down

0 comments on commit d515cc5

Please sign in to comment.