From ab34c93d7b2fbb0109fa4748ef76c38674cd8b0f Mon Sep 17 00:00:00 2001 From: nguyenvukhang Date: Thu, 2 Feb 2023 19:50:52 +0800 Subject: [PATCH] docs: add a readme for mac setup --- .github/workflows/ci.yml | 1 + deploy/mac-readme.txt | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 deploy/mac-readme.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8cb4e4..5767415 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,6 +50,7 @@ jobs: - run: | mkdir dmg cp -a build/CanvasSync.app 'dmg/Canvas Sync.app' + mv ./deploy/mac-readme.txt dmg/README.txt ln -s /Applications dmg/Applications hdiutil create -volname CanvasSync \ -srcfolder dmg \ diff --git a/deploy/mac-readme.txt b/deploy/mac-readme.txt new file mode 100644 index 0000000..4f815ce --- /dev/null +++ b/deploy/mac-readme.txt @@ -0,0 +1,18 @@ +Before running Canvas Sync for the first time, open a terminal window +and run + +``` +xattr -c 'Canvas Sync.app' +``` + +first. Otherwise there will be an error saying that this app is +developed by an unidentified developer, but that's just me, the dev. + +If you've dragged-and-dropped Canvas Sync into the /Applications +folder already, simply run + +``` +xattr -c '/Applications/Canvas Sync.app' +``` + +instead. Enjoy!