Skip to content

Commit cebcd56

Browse files
committed
Add --nohub option to start without netsiohub running
1 parent 0494d58 commit cebcd56

3 files changed

Lines changed: 21 additions & 25 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -121,20 +121,12 @@ jobs:
121121
target: [windows-x64]
122122
runner: [windows-latest]
123123
include:
124-
# - name: Ubuntu 22.04
125-
# target: ubuntu-22.04-amd64
126-
# runner: ubuntu-22.04
127-
# default-shell: bash
128-
# - name: Ubuntu 18.04
129-
# target: ubuntu-18.04-amd64
130-
# runner: ubuntu-18.04
131-
# default-shell: bash
132-
- name: macOS 13
133-
target: macos-13
134-
runner: macos-13
135-
# - name: macOS 14
136-
# target: macos-14
137-
# runner: macos-14
124+
- name: macOS 15 ARM
125+
target: macos-15-arm64
126+
runner: macos-15
127+
- name: macOS 15 Intel
128+
target: macos-15-x64
129+
runner: macos-15-intel
138130
# continue-on-error: true
139131
name: Build ${{ matrix.name }}
140132
runs-on: ${{ matrix.runner }}
@@ -147,17 +139,14 @@ jobs:
147139
uses: actions/checkout@v4
148140
with:
149141
path: fujinet-pc-launcher
142+
fetch-depth: 0
150143

151144
- name: '🧰 Checkout Emulator Bridge'
152145
uses: actions/checkout@v4
153146
with:
154147
repository: FujiNetWIFI/fujinet-emulator-bridge
155148
path: fujinet-emulator-bridge
156149

157-
- name: Fetch tags
158-
working-directory: fujinet-pc-launcher
159-
run: git fetch --prune --unshallow --tags
160-
161150
- name: 'Copy NetSIO hub module'
162151
run: cp -av fujinet-emulator-bridge/fujinet-bridge/netsiohub fujinet-pc-launcher
163152

@@ -169,7 +158,7 @@ jobs:
169158
- name: Install Python
170159
uses: actions/setup-python@v5
171160
with:
172-
python-version: '3.10'
161+
python-version: '3.12'
173162

174163
- name: List versions
175164
run: |

launcher/config.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ def __init__(self) -> None:
6767
self.netsio_rundir : AnyStr = os.path.dirname(self.launcher_rundir)
6868
# module name
6969
self.netsio_module : str = "netsiohub"
70+
# auto-start NetSIO hub
71+
self.netsio_autostart : bool = True
7072

7173
# Launcher label
7274
self.launcher_label : str = ""
@@ -140,6 +142,7 @@ def parse_args(self) -> None:
140142
arg_parser.add_argument('-s', '--sd', type=str, help='Path to SD directory (SD)')
141143
arg_parser.add_argument('-p', '--port', type=int, help='TCP port used by Altirra NetSIO custom device (9996)')
142144
arg_parser.add_argument('-r', '--netsio-port', type=int, help='UDP port used by NetSIO peripherals (9997)')
145+
arg_parser.add_argument('--nohub', dest='nohub', action='store_true', help='Do not start NetSIO hub automatically')
143146
# -i N is shortcut for -l FujiNet-N -u localhost:8000+N -c FujiNet-N/fnconfig.ini -s FujiNet-N/SD -r 9000+N -p 10000+N"
144147
arg_parser.add_argument('-i', '--instance', type=int, help="FujiNet instance ID")
145148
arg_parser.add_argument('-v', '--verbose', dest='verbose', action='store_true', help='Log emulation device commands')
@@ -169,7 +172,7 @@ def parse_args(self) -> None:
169172

170173
if args.label is not None:
171174
self.launcher_label = args.label
172-
print("label:", self.launcher_label)
175+
print("Label:", self.launcher_label)
173176

174177
if args.gui_scale is not None:
175178
if args.gui_scale >= 0.3 and args.gui_scale <= 3.0:
@@ -194,6 +197,10 @@ def parse_args(self) -> None:
194197
self.fujinet_webui_port = to_port(port_str)
195198
print("WebUI host:", self.fujinet_webui_host, "port:", self.fujinet_webui_port)
196199

200+
if args.nohub is not None:
201+
self.netsio_autostart = not args.nohub
202+
print("NetSIO hub auto-start:", self.netsio_autostart)
203+
197204
if args.netsio_port is not None:
198205
self.netsio_port = to_port(args.netsio_port)
199206
print("NetSIO port:", self.netsio_port)

launcher/version.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
NAME = "FujiNet-PC Launcher"
22

3-
VERSION_MAJOR = "2312"
3+
VERSION_MAJOR = "2602"
44
VERSION_MINOR = "0"
5-
VERSION_BUILD = "ccb6a23"
6-
VERSION_DATE = "2023-12-29 00:00:00"
7-
VERSION_FULL = "2312.0.ccb6a23"
5+
VERSION_BUILD = "xxxxxxx"
6+
VERSION_DATE = "2026-02-06 00:00:00"
7+
VERSION_FULL = "2602.0.xxxxxxx"
88

99
DESCRIPTION = "A launcher to control FujiNet-PC and NetSIO hub."
1010

11-
COPYRIGHT = "(C) 2022-2025 apc"
11+
COPYRIGHT = "(C) 2022-2026 apc"
1212
WEBSITE = "https://github.com/a8jan/fujinet-pc-launcher"

0 commit comments

Comments
 (0)