Restructure step R: the app is Starsync (dev.foxyz.starsync)
- Linux app id dev.foxyz.starsync, binary starsync; Windows starsync.exe, company foxyz; server starsync-server; Dart package starsync; archives starsync-<ver>-*. - 1.2.x compatibility: watch_together and watch-together-server launchers (Linux) / copies (Windows) in the archive; the updater accepts both names and relaunches the new binary; update.sh/.bat use whichever server exists. - First start copies (never moves) the old support folder and this app's Hive boxes out of ~/Documents into <support>/hive; a marker makes it run once; AppDirs is a port; settings schema version with ordered migrations. - Launcher entry dev.foxyz.starsync.desktop; the old one removed. - Repository name and URLs unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f4ca02c3cf
commit
51c1c5ab78
96 files changed
+1169
-489
No files matched your search
@@ -8,7 +8,8 @@ import 'package:sync_relay_core/core.dart';
|
||||
import 'package:sync_relay_server/server.dart';
|
||||
|
||||
/// Dedicated server: `dart compile exe` of this file is shipped as
|
||||
/// `watch-together-server`. Runs [serve] until SIGINT or SIGTERM.
|
||||
/// `starsync-server` (also started by the `watch-together-server`
|
||||
/// launcher). Runs [serve] until SIGINT or SIGTERM.
|
||||
Future<void> main(List<String> args) async {
|
||||
final parser = ArgParser()
|
||||
..addOption('port', abbr: 'p', defaultsTo: '8080', help: 'TCP port to listen on (all IPv4 interfaces).')
|
||||
@@ -50,12 +51,12 @@ Future<void> main(List<String> args) async {
|
||||
}
|
||||
if (parsed['help'] as bool) {
|
||||
// ignore: avoid_print
|
||||
print('watch-together-server $appVersion (proto ${RelayConstants.protoVersion})\n\n${parser.usage}');
|
||||
print('starsync-server $appVersion (proto ${RelayConstants.protoVersion})\n\n${parser.usage}');
|
||||
return;
|
||||
}
|
||||
if (parsed['upgrade'] as bool || parsed['check-update'] as bool) {
|
||||
exitCode = await runUpgrade(
|
||||
program: 'watch-together-server',
|
||||
program: 'starsync-server',
|
||||
checkOnly: !(parsed['upgrade'] as bool),
|
||||
restartNote: (v) => 'updated to $v — restart the server to run $v.');
|
||||
return;
|
||||
@@ -67,7 +68,7 @@ Future<void> main(List<String> args) async {
|
||||
(configPath != null ? '${File(configPath).absolute.parent.path}${Platform.pathSeparator}logs' : serverDataDir('logs'));
|
||||
final files = startLogFiles(logDir, prefix: 'server');
|
||||
if (files != null) stdout.writeln('logs: ${files.dir}');
|
||||
pkg_logging.Logger('server').info('watch-together-server $appVersion (proto ${RelayConstants.protoVersion}) '
|
||||
pkg_logging.Logger('server').info('starsync-server $appVersion (proto ${RelayConstants.protoVersion}) '
|
||||
'on ${Platform.operatingSystem} ${Platform.operatingSystemVersion}, pid $pid');
|
||||
AppConfig config;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user