diff --git a/.travis.yml b/.travis.yml index 7196646..d31d61c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,6 +37,8 @@ before_deploy: - pip install dmgbuild - mkdir dist_dmg - mv resources/macos_vlc_install.command resources/.macos_vlc_install.command +- mv resources/lua/intf/syncplay.lua resources/lua/intf/.syncplay.lua +- mv resources/macOS_readme.pdf resources/.macOS_readme.pdf - dmgbuild -s appdmg.py "Syncplay" dist_dmg/Syncplay-qtpy-pyside2.dmg deploy: diff --git a/appdmg.py b/appdmg.py index 58112cf..3e2dc8c 100644 --- a/appdmg.py +++ b/appdmg.py @@ -27,10 +27,10 @@ compression_level = 9 size = defines.get('size', None) # Files to include -files = [ application, 'resources/lua/intf/syncplay.lua', 'resources/.macos_vlc_install.command' ] +files = [ application, 'resources/lua/intf/.syncplay.lua', 'resources/.macos_vlc_install.command', 'resources/.macOS_readme.pdf' ] # Symlinks to create -symlinks = { 'Applications': '/Applications', 'Install in VLC': '.macos_vlc_install.command' } +symlinks = { 'Applications': '/Applications', 'Install for VLC': '.macos_vlc_install.command', 'Read Me': '.macOS_readme.pdf' } # Volume icon # @@ -43,10 +43,10 @@ badge_icon = icon_from_app(application) # Where to put the icons icon_locations = { - appname: (80, 80), - 'Applications': (280, 80), - 'syncplay.lua': (80, 240), - 'Install in VLC': (280, 240) + appname: (150, 110), + 'Applications': (450, 110), + 'Read Me': (100, 285), + 'Install for VLC': (500, 285) } # .. Window configuration ...................................................... @@ -71,7 +71,7 @@ icon_locations = { # # Other color components may be expressed either in the range 0 to 1, or # as percentages (e.g. 60% is equivalent to 0.6). -background = '#bacbe0' +background = 'resources/macOS_dmg_bkg.tiff' show_status_bar = False show_tab_view = False @@ -81,7 +81,7 @@ show_sidebar = False sidebar_width = 180 # Window position in ((x, y), (w, h)) format -window_rect = ((100, 100), (360, 400)) +window_rect = ((100, 100), (600, 460)) # Select the default view; must be one of # diff --git a/resources/macOS_dmg_bkg.tiff b/resources/macOS_dmg_bkg.tiff new file mode 100644 index 0000000..9ead2f6 Binary files /dev/null and b/resources/macOS_dmg_bkg.tiff differ diff --git a/resources/macOS_readme.pdf b/resources/macOS_readme.pdf new file mode 100644 index 0000000..f18c6db Binary files /dev/null and b/resources/macOS_readme.pdf differ diff --git a/resources/macos_vlc_install.command b/resources/macos_vlc_install.command index b03f213..4774144 100755 --- a/resources/macos_vlc_install.command +++ b/resources/macos_vlc_install.command @@ -2,4 +2,4 @@ mkdir -p $HOME/Library/Application\ Support/org.videolan.vlc/lua/intf/ -cp /Volumes/Syncplay/syncplay.lua $HOME/Library/Application\ Support/org.videolan.vlc/lua/intf/ +cp /Volumes/Syncplay/.syncplay.lua $HOME/Library/Application\ Support/org.videolan.vlc/lua/intf/syncplay.lua