add hidpi.command

This commit is contained in:
hjmmc 2020-04-17 17:58:39 +08:00
parent 4d0af8a151
commit 2459268e7b
3 changed files with 8 additions and 2 deletions

View file

@ -26,7 +26,7 @@ macOS 的 DPI 机制和 Windows 下不一样,比如 1080p 的屏幕在 Windows
bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)" bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)"
``` ```
2.本地模式: 下载项目解压,`hidpi.sh` 拖进终端按回车运行 2.本地模式: 下载项目解压,双击 `hidpi.command` 运行
![运行](./img/run-zh.jpg) ![运行](./img/run-zh.jpg)

View file

@ -24,7 +24,7 @@ System Preferences
bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)" bash -c "$(curl -fsSL https://raw.githubusercontent.com/xzhih/one-key-hidpi/master/hidpi.sh)"
``` ```
2.Local Mode: Download ZIP, decompressing it, drag the `hidpi.sh` file into the terminal and press Enter to run 2.Local Mode: Download ZIP, decompressing it, and double click `hidpi.command` to run
![RUN](./img/run.jpg) ![RUN](./img/run.jpg)

6
hidpi.command Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
DIR="$( cd "$( dirname "$0" )" && pwd )"
$DIR/hidpi.sh