Mac: bundle renamed Igneum Miner.app (network.igneum.miner, 0.1.0, LSMinimumSystemVersion 11.0, igneum.icns), Terminal title Igneum Miner, seed line in the first-run text, branded DMG (volume icon, background, icon slots via dmgbuild), dist/Igneum-Miner-0.1.0.dmg at 16.2 MB, tested synced against the live node on 27400/27401. Windows: packaging/windows with windres .rc files and embed-resources.sh (relink commands for the next cross-build), Igneum-Miner.iss (Program Files, Start Menu group, firewall rule, uninstall stops the processes, licence, seed line), BUILD-INSTALLER.bat and build-installer.ps1 for the project lead's PC (winget Inno Setup 6, rcedit fallback for the exe icon). Icons: brand/icons/make-icons.py makes igneum.icns, igneum.ico, the Inno wizard art and the DMG background. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
40 lines
1.5 KiB
Python
40 lines
1.5 KiB
Python
# dmgbuild settings for Igneum-Miner-<version>.dmg (used by build-dmg.sh; pip3 install dmgbuild).
|
|
# Defines passed in: app (the built .app), stage (the folder with README.txt and the Stop command), icons (brand/icons).
|
|
# Icon slots match brand/icons/make-icons.py (APP_SLOT, APPS_SLOT, ROW2_Y, ICON) and the arrow painted on the background.
|
|
import os
|
|
app = defines['app']
|
|
stage = defines['stage']
|
|
icons = defines['icons']
|
|
appname = os.path.basename(app)
|
|
|
|
format = 'ULFO'
|
|
filesystem = 'HFS+'
|
|
size = None
|
|
files = [app, os.path.join(stage, 'README.txt'), os.path.join(stage, 'Stop Igneum Miner.command')]
|
|
symlinks = {'Applications': '/Applications'}
|
|
icon = os.path.join(icons, 'igneum.icns') # the volume icon (.VolumeIcon.icns, hidden, custom-icon flag set)
|
|
background = os.path.join(icons, 'dmg-background.tiff') if os.path.exists(os.path.join(icons, 'dmg-background.tiff')) else os.path.join(icons, 'dmg-background.png')
|
|
show_status_bar = False
|
|
show_tab_view = False
|
|
show_toolbar = False
|
|
show_pathbar = False
|
|
show_sidebar = False
|
|
sidebar_width = 180
|
|
window_rect = ((200, 120), (660, 400))
|
|
default_view = 'icon-view'
|
|
show_icon_preview = False
|
|
include_icon_view_settings = 'auto'
|
|
include_list_view_settings = 'auto'
|
|
arrange_by = None
|
|
grid_offset = (0, 0)
|
|
grid_spacing = 100
|
|
scroll_position = (0, 0)
|
|
label_pos = 'bottom'
|
|
text_size = 12
|
|
icon_size = 96
|
|
icon_locations = {
|
|
appname: (165, 130),
|
|
'Applications': (495, 130),
|
|
'README.txt': (165, 330),
|
|
'Stop Igneum Miner.command': (495, 330),
|
|
}
|