Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release Pipeline

on:
workflow_dispatch:
workflow_run:
workflows: ["Continuous Integration"]
types:
Expand All @@ -13,13 +14,16 @@ permissions:

jobs:
release-build:
if: github.event.workflow_run.conclusion == 'success'
if: github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
strategy:
matrix:
include:
- os: ubuntu-latest
rid: linux-x64
archive_ext: tar.gz
- os: ubuntu-latest
rid: linux-arm64
archive_ext: tar.gz
- os: macos-latest
rid: osx-x64
archive_ext: zip
Expand Down Expand Up @@ -94,6 +98,12 @@ jobs:
run: |
tar -czf PocketMC-${{ matrix.rid }}.tar.gz -C publish .

- name: Package Linux Debian Package (.deb)
if: steps.check_channel.outputs.skip == 'false' && matrix.os == 'ubuntu-latest'
run: |
chmod +x scripts/build-deb.sh
./scripts/build-deb.sh ${{ matrix.rid }} ${{ steps.config.outputs.version }} publish

- name: Package Release Archive (zip)
if: steps.check_channel.outputs.skip == 'false' && matrix.archive_ext == 'zip'
run: |
Expand All @@ -114,6 +124,7 @@ jobs:
path: |
PocketMC-${{ matrix.rid }}.${{ matrix.archive_ext }}
PocketMC-*.dmg
pocketmc_*.deb

create-release:
needs: release-build
Expand Down Expand Up @@ -171,11 +182,13 @@ jobs:
body: "Official cross-platform production release of PocketMC for Linux and macOS."
files: |
artifacts/PocketMC-linux-x64.tar.gz
artifacts/PocketMC-linux-arm64.tar.gz
artifacts/pocketmc_*.deb
artifacts/PocketMC-osx-x64.zip
artifacts/PocketMC-osx-arm64.zip
artifacts/PocketMC-osx-x64.dmg
artifacts/PocketMC-osx-arm64.dmg
draft: false
prerelease: false
prerelease: ${{ contains(steps.config.outputs.version, 'beta') || contains(steps.config.outputs.version, 'rc') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ PocketMC-linux-x64.tar.gz
PocketMC-*.tar.gz
PocketMC-*.zip
.planning/
.ai/
76 changes: 76 additions & 0 deletions PocketMC.App/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,108 @@

<Application.Styles>
<FluentTheme />
<StyleInclude Source="avares://PocketMC.App/Styles/SkeletonStyles.axaml"/>

<!-- High-Contrast Accessible Style for AI Action Buttons & Crash Dialogs -->
<Style Selector="Button.ai-action">
<Setter Property="Background" Value="#0066D6" />
<Setter Property="Foreground" Value="#FFFFFF" />
<Setter Property="BorderBrush" Value="#2A85FF" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Cursor" Value="Hand" />
</Style>
<Style Selector="Button.ai-action:pointerover">
<Setter Property="Background" Value="#1A7BE6" />
<Setter Property="BorderBrush" Value="#4EA0FF" />
</Style>
<Style Selector="Button.ai-action:pressed">
<Setter Property="Background" Value="#0052B3" />
<Setter Property="BorderBrush" Value="#00408C" />
</Style>
</Application.Styles>

<TrayIcon.Icons>
<TrayIcons>
<TrayIcon Icon="/Assets/icon.png" ToolTipText="PocketMC Desktop" Clicked="TrayIcon_Clicked">
<TrayIcon.Menu>
<NativeMenu>
<NativeMenuItem Header="Open PocketMC" Click="TrayOpen_Clicked"/>
<NativeMenuItemSeparator/>
<NativeMenuItem Header="Quit PocketMC" Click="TrayQuit_Clicked"/>
</NativeMenu>
</TrayIcon.Menu>
</TrayIcon>
</TrayIcons>
</TrayIcon.Icons>

<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light">
<!-- Standard Avalonia Tokens -->
<SolidColorBrush x:Key="WindowBackgroundBrush" Color="#F4F4F7"/>
<SolidColorBrush x:Key="CardBackgroundBrush" Color="#FFFFFF"/>
<SolidColorBrush x:Key="CardBorderBrush" Color="#E4E4E7"/>
<SolidColorBrush x:Key="TextPrimaryBrush" Color="#18181B"/>
<SolidColorBrush x:Key="TextSecondaryBrush" Color="#71717A"/>
<SolidColorBrush x:Key="TextMutedBrush" Color="#A1A1AA"/>
<SolidColorBrush x:Key="InputBackgroundBrush" Color="#F4F4F7"/>
<SolidColorBrush x:Key="ControlFillSecondaryBrush" Color="#F4F4F7"/>
<SolidColorBrush x:Key="ControlBorderBrush" Color="#E4E4E7"/>
<SolidColorBrush x:Key="ConsoleBackgroundBrush" Color="#1E1E24"/>
<SolidColorBrush x:Key="ConsoleHeaderBackgroundBrush" Color="#F4F4F7"/>
<SolidColorBrush x:Key="ConsoleTextBrush" Color="#18181B"/>
<SolidColorBrush x:Key="AccentPrimaryBrush" Color="#0066D6"/>

<!-- Windows WPF UI Parity Tokens -->
<SolidColorBrush x:Key="CardBackgroundFillColorDefaultBrush" Color="#FFFFFF"/>
<SolidColorBrush x:Key="CardBackgroundFillColorSecondaryBrush" Color="#F9F9F9"/>
<SolidColorBrush x:Key="CardStrokeColorDefaultBrush" Color="#E4E4E7"/>
<SolidColorBrush x:Key="ControlFillColorDefaultBrush" Color="#F4F4F7"/>
<SolidColorBrush x:Key="ControlFillColorSecondaryBrush" Color="#EBEBEF"/>
<SolidColorBrush x:Key="ControlStrokeColorDefaultBrush" Color="#E4E4E7"/>
<SolidColorBrush x:Key="TextFillColorPrimaryBrush" Color="#18181B"/>
<SolidColorBrush x:Key="TextFillColorSecondaryBrush" Color="#71717A"/>
<SolidColorBrush x:Key="TextFillColorTertiaryBrush" Color="#A1A1AA"/>
<SolidColorBrush x:Key="TextFillColorDisabledBrush" Color="#D4D4D8"/>
<SolidColorBrush x:Key="AccentFillColorDefaultBrush" Color="#0066D6"/>
<SolidColorBrush x:Key="AccentTextFillColorPrimaryBrush" Color="#0052B3"/>
<SolidColorBrush x:Key="SystemFillColorCriticalBrush" Color="#C42B1C"/>
<SolidColorBrush x:Key="SystemFillColorCautionBrush" Color="#D97706"/>
<SolidColorBrush x:Key="SystemFillColorSuccessBrush" Color="#059669"/>
</ResourceDictionary>
<ResourceDictionary x:Key="Dark">
<!-- Standard Avalonia Tokens -->
<SolidColorBrush x:Key="WindowBackgroundBrush" Color="#121214"/>
<SolidColorBrush x:Key="CardBackgroundBrush" Color="#1E1E24"/>
<SolidColorBrush x:Key="CardBorderBrush" Color="#2D2D30"/>
<SolidColorBrush x:Key="TextPrimaryBrush" Color="#F4F4F7"/>
<SolidColorBrush x:Key="TextSecondaryBrush" Color="#A1A1AA"/>
<SolidColorBrush x:Key="TextMutedBrush" Color="#71717A"/>
<SolidColorBrush x:Key="InputBackgroundBrush" Color="#2A2A30"/>
<SolidColorBrush x:Key="ControlFillSecondaryBrush" Color="#252528"/>
<SolidColorBrush x:Key="ControlBorderBrush" Color="#3F3F46"/>
<SolidColorBrush x:Key="ConsoleBackgroundBrush" Color="#0C0C0D"/>
<SolidColorBrush x:Key="ConsoleHeaderBackgroundBrush" Color="#1E1E24"/>
<SolidColorBrush x:Key="ConsoleTextBrush" Color="#F4F4F7"/>
<SolidColorBrush x:Key="AccentPrimaryBrush" Color="#0066D6"/>

<!-- Windows WPF UI Parity Tokens -->
<SolidColorBrush x:Key="CardBackgroundFillColorDefaultBrush" Color="#1E1E24"/>
<SolidColorBrush x:Key="CardBackgroundFillColorSecondaryBrush" Color="#252528"/>
<SolidColorBrush x:Key="CardStrokeColorDefaultBrush" Color="#2D2D30"/>
<SolidColorBrush x:Key="ControlFillColorDefaultBrush" Color="#252528"/>
<SolidColorBrush x:Key="ControlFillColorSecondaryBrush" Color="#2A2A30"/>
<SolidColorBrush x:Key="ControlStrokeColorDefaultBrush" Color="#3F3F46"/>
<SolidColorBrush x:Key="TextFillColorPrimaryBrush" Color="#F4F4F7"/>
<SolidColorBrush x:Key="TextFillColorSecondaryBrush" Color="#A1A1AA"/>
<SolidColorBrush x:Key="TextFillColorTertiaryBrush" Color="#71717A"/>
<SolidColorBrush x:Key="TextFillColorDisabledBrush" Color="#52525B"/>
<SolidColorBrush x:Key="AccentFillColorDefaultBrush" Color="#0066D6"/>
<SolidColorBrush x:Key="AccentTextFillColorPrimaryBrush" Color="#4EA0FF"/>
<SolidColorBrush x:Key="SystemFillColorCriticalBrush" Color="#FF4444"/>
<SolidColorBrush x:Key="SystemFillColorCautionBrush" Color="#F59E0B"/>
<SolidColorBrush x:Key="SystemFillColorSuccessBrush" Color="#10B981"/>
</ResourceDictionary>
</ResourceDictionary.ThemeDictionaries>
</ResourceDictionary>
Expand Down
76 changes: 76 additions & 0 deletions PocketMC.App/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,28 @@ public override void OnFrameworkInitializationCompleted()
desktop.MainWindow = Services.GetRequiredService<MainWindow>();
}

if (desktop.MainWindow != null)
{
desktop.MainWindow.Loaded += async (s, e) =>
{
try
{
var whatsNewService = Services.GetRequiredService<PocketMC.Infrastructure.WhatsNew.WhatsNewService>();
if (whatsNewService.ShouldShow())
{
var whatsNewWin = new WhatsNewWindow(whatsNewService);
await whatsNewWin.ShowDialog(desktop.MainWindow);
}
}
catch { }
};
}

try
{
var rebootScheduler = Services.GetService<PocketMC.Infrastructure.Services.ServerRebootSchedulerService>();
rebootScheduler?.Start();

var playitClient = Services.GetRequiredService<PocketMC.RemoteControl.Tunnels.PlayitApiClient>();
var tunnelManager = Services.GetRequiredService<PocketMC.RemoteControl.Tunnels.RemoteTunnelManager>();
if (playitClient.HasPartnerConnection())
Expand All @@ -52,9 +72,65 @@ public override void OnFrameworkInitializationCompleted()
}
}
catch { }

desktop.Exit += async (sender, args) =>
{
try
{
var rebootScheduler = Services.GetService<PocketMC.Infrastructure.Services.ServerRebootSchedulerService>();
rebootScheduler?.Stop();

var procRunner = Services.GetService<PocketMC.Core.Services.IProcessRunner>();
if (procRunner != null)
{
await procRunner.StopAllAsync();
}

var tunnelManager = Services.GetService<PocketMC.RemoteControl.Tunnels.RemoteTunnelManager>();
if (tunnelManager != null)
{
await tunnelManager.StopAllTunnelsAsync();
}
}
catch { }
};
}

base.OnFrameworkInitializationCompleted();
}

private void TrayIcon_Clicked(object? sender, EventArgs e)
{
RestoreMainWindow();
}

private void TrayOpen_Clicked(object? sender, EventArgs e)
{
RestoreMainWindow();
}

private void TrayQuit_Clicked(object? sender, EventArgs e)
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
{
desktop.Shutdown();
}
}

private void RestoreMainWindow()
{
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop && desktop.MainWindow != null)
{
if (!desktop.MainWindow.IsVisible)
{
desktop.MainWindow.Show();
}
if (desktop.MainWindow.WindowState == Avalonia.Controls.WindowState.Minimized)
{
desktop.MainWindow.WindowState = Avalonia.Controls.WindowState.Normal;
}
desktop.MainWindow.Activate();
}
}
}
}
19 changes: 19 additions & 0 deletions PocketMC.App/Assets/WhatsNew.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
VERSION=1.0.4-beta.1

[NEW FEATURES & LINUX/MACOS PARITY]
Exact PocketMC Windows UI and UX parity delivered for Linux and macOS.
TitleBar live System RAM usage telemetry with threshold alert coloring.
Full Remote Control subsystem with auto-start, Cloudflare/Playit tunnels, and PBKDF2 authentication.
Cross-platform AppClipboard service supporting Wayland (wl-copy), X11 (xclip/xsel), and macOS (pbcopy).

[IMPROVEMENTS]
Accurate instance card state synchronization for running servers with emerald status indicators.
Platform-aware title bar margin adjustment ensuring flush right-edge alignment on Linux and macOS.
Enforced word wrapping on server console logs eliminating horizontal scrollbars.
Interactive Ports Map visualizing local ports, RCON, Query, Simple Voice Chat UDP, and Playit public endpoints.

[FIXES & STABILITY]
Fixed session.lock DirectoryLock LockException crash caused by duplicate process execution and orphaned child processes.
Guaranteed entireProcessTree process termination on server shutdown and stop timeouts.
Configurable server crash auto-restart preventing infinite crash loops on fatal errors.
Console Copy Logs button with visual confirmation and dynamic checkmark feedback.
Binary file added PocketMC.App/Assets/avatar_divyviradiya.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PocketMC.App/Assets/avatar_johndinglesin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PocketMC.App/Assets/avatar_nexvice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PocketMC.App/Assets/avatar_sahajitaliya.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PocketMC.App/Assets/dark_dirt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PocketMC.App/Assets/default_wallpaper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified PocketMC.App/Assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PocketMC.App/Assets/logo_highres.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added PocketMC.App/Assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading