Skip to content

Commit d995a6d

Browse files
committed
Improvements to dmg packaging
* Add custom background image * Add instructions on how to allow app to run * Use create-dmg directly instead of additional action
1 parent d55156d commit d995a6d

3 files changed

Lines changed: 70 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,16 @@ jobs:
4141
run: npm install
4242
- name: Pack into zip and create installer
4343
run: npm run pack-mac
44-
- name: create macOS dmg
45-
uses: L-Super/create-dmg-actions@v1.0.3
46-
with:
47-
dmg_name: 'dist/mac/OpenATBPClient'
48-
src_dir: 'dist/mac/OpenATBPClient.app'
44+
- name: Install create-dmg
45+
run: brew install create-dmg
46+
- name: Create .dmg file
47+
run: |
48+
create-dmg --volname OpenATBP \
49+
--window-pos 200 120 --window-size 660 400 \
50+
--icon-size 100 --icon OpenATBPClient.app 160 100 \
51+
--app-drop-link 500 100 \
52+
--add-file "MacOS Instructions.rtf" "build/MacOS Instructions.rtf" 330 260 \
53+
--background build/dmg_bg.png dist/OpenATBPClient.dmg dist/mac
4954
- name: Upload Artifacts
5055
uses: actions/upload-artifact@master
5156
with:

build/MacOS Instructions.rtf

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{\rtf1\ansi\ansicpg1252\cocoartf2821
2+
\cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;\f1\fswiss\fcharset0 Helvetica-Bold;\f2\froman\fcharset0 Times-Roman;
3+
\f3\froman\fcharset0 Times-Italic;\f4\fswiss\fcharset0 Helvetica-Oblique;}
4+
{\colortbl;\red255\green255\blue255;\red0\green0\blue0;\red205\green205\blue205;}
5+
{\*\expandedcolortbl;;\cssrgb\c0\c0\c0;\csgray\c84070;}
6+
{\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{square\}}{\leveltext\leveltemplateid1\'01\uc0\u9642 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}
7+
{\list\listtemplateid2\listhybrid{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{decimal\}.}{\leveltext\leveltemplateid101\'02\'00.;}{\levelnumbers\'01;}\fi-360\li720\lin720 }{\listname ;}\listid2}
8+
{\list\listtemplateid3\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{square\}}{\leveltext\leveltemplateid201\'01\uc0\u9642 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid3}
9+
{\list\listtemplateid4\listhybrid{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{decimal\}.}{\leveltext\leveltemplateid301\'02\'00.;}{\levelnumbers\'01;}\fi-360\li720\lin720 }{\listname ;}\listid4}
10+
{\list\listtemplateid5\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{square\}}{\leveltext\leveltemplateid401\'01\uc0\u9642 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid5}
11+
{\list\listtemplateid6\listhybrid{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{decimal\}.}{\leveltext\leveltemplateid501\'02\'00.;}{\levelnumbers\'01;}\fi-360\li720\lin720 }{\listname ;}\listid6}}
12+
{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}{\listoverride\listid3\listoverridecount0\ls3}{\listoverride\listid4\listoverridecount0\ls4}{\listoverride\listid5\listoverridecount0\ls5}{\listoverride\listid6\listoverridecount0\ls6}}
13+
\margl1440\margr1440\vieww11520\viewh8400\viewkind0
14+
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\qc\partightenfactor0
15+
16+
\f0\fs48 \cf0 \
17+
Welcome to the Battle Party!\
18+
\
19+
20+
\fs28 OpenATBP is a fan-made revival of the discontinued MOBA, Adventure Time Battle Party.\
21+
In order to play on MacOS, you will need to go through a few simple steps.\
22+
\
23+
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\pardirnatural\partightenfactor0
24+
\ls1\ilvl0\cf0 {\listtext \uc0\u9642 }
25+
\f1\b Allow non-AppStore applications to run:
26+
\f0\b0 \
27+
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\pardirnatural\partightenfactor0
28+
\ls2\ilvl0\cf0 {\listtext 1. }Click the Apple logo in the upper left, then choose System Settings, a new window will open\
29+
{\listtext 2. }In the leftmost pane, scroll down to \'91Privacy & Security\'92 and click on it\
30+
{\listtext 3. }In the rightmost pane, scroll down until you reach the Security section\
31+
{\listtext 4. }Change the \'91Allow applications from\'92 setting from \'91App Store\'92 to \'91App Store & Known Developers\'92\
32+
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0
33+
\cf0 \
34+
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\pardirnatural\partightenfactor0
35+
\ls3\ilvl0\cf0 {\listtext \uc0\u9642 }
36+
\f1\b Move OpenATBPClient to the Applications folder
37+
\f0\b0 \
38+
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\pardirnatural\partightenfactor0
39+
\ls4\ilvl0\cf0 {\listtext 1. }Inside of the downloaded DMG file, simply drag the \'91OpenATBPClient\'92 icon onto the Applications folder icon in order to install the game client\
40+
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural\partightenfactor0
41+
\cf0 \
42+
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\pardirnatural\partightenfactor0
43+
\ls5\ilvl0\cf0 {\listtext \uc0\u9642 }Remove quarantine flag from OpenATBPClient\
44+
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\pardirnatural\partightenfactor0
45+
\ls6\ilvl0\cf0 {\listtext 1. }Press
46+
\f2 \expnd0\expndtw0\kerning0
47+
\outl0\strokewidth0 \strokec2 \uc0\u8984
48+
\f3\i + SPACEBAR
49+
\f2\i0 to open Spotlight search\
50+
\ls6\ilvl0
51+
\f0 \kerning1\expnd0\expndtw0 \outl0\strokewidth0 {\listtext 2. }Type \'91Terminal\'92 and press Return to open Terminal\
52+
{\listtext 3. }Once Terminal is open, type in
53+
\f4\i \cb3 xattrs -d com.apple.quarantine /Applications/OpenATBPClient.app
54+
\f0\i0 \cb1 then press Return, you can close Terminal after this\
55+
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\pardirnatural\partightenfactor0
56+
\cf0 \
57+
\pard\tx220\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\li720\fi-720\pardirnatural\qc\partightenfactor0
58+
\cf0 You should now be set to play Battle Party!\
59+
If you are encountering any issues or have questions, feel free to {\field{\*\fldinst{HYPERLINK "https://discord.gg/AwmCCuAdT4"}}{\fldrslt join our Discord community}}. Thank you and enjoy!\
60+
}

build/dmg_bg.png

143 KB
Loading

0 commit comments

Comments
 (0)