From 2459268e7b5d9a01aab3b29ff937cb59c8cac427 Mon Sep 17 00:00:00 2001 From: hjmmc Date: Fri, 17 Apr 2020 17:58:39 +0800 Subject: [PATCH] add hidpi.command --- README-zh.md | 2 +- README.md | 2 +- hidpi.command | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 hidpi.command diff --git a/README-zh.md b/README-zh.md index bae34f5..b465d73 100755 --- a/README-zh.md +++ b/README-zh.md @@ -26,7 +26,7 @@ macOS 的 DPI 机制和 Windows 下不一样,比如 1080p 的屏幕在 Windows 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) diff --git a/README.md b/README.md index 722aad9..42dba2b 100755 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ System Preferences 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) diff --git a/hidpi.command b/hidpi.command new file mode 100755 index 0000000..1607b88 --- /dev/null +++ b/hidpi.command @@ -0,0 +1,6 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "$0" )" && pwd )" + +$DIR/hidpi.sh +