Compare commits
51 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 00d10f540e | |||
| 5b7e6e083b | |||
| 7fb0ee548e | |||
| d8a42592ae | |||
| fdcbc73d6b | |||
| ec485ea16d | |||
| 42a8643e8e | |||
| 5f122b31a6 | |||
| 8554fe92ad | |||
| 1b1b743158 | |||
| 1f1c03fd98 | |||
| cbfa6a930e | |||
| 387c2f9551 | |||
| 36174cff18 | |||
| 1a5e9bd701 | |||
| 55d03fcc27 | |||
| 35c4681f11 | |||
| 3c298f2d07 | |||
| 467940f3f9 | |||
| 613482e387 | |||
| f2eea9c048 | |||
| c6f089cf77 | |||
| b18d583687 | |||
| d23486760f | |||
| 18ee97cf32 | |||
| 9da86bd4c6 | |||
| 3422eac140 | |||
| badfc20751 | |||
| 2405516326 | |||
| 769be3403d | |||
| 4e3a87084d | |||
| 91317e13e9 | |||
| cbc3ac75dd | |||
| 52dd7d0e45 | |||
| 03f69b1da3 | |||
| 145ef1e3ae | |||
| a24366c9b3 | |||
| 5de861484c | |||
| 008e070d85 | |||
| afe056353e | |||
| 6162b1a435 | |||
| 49ac9938ad | |||
| a76ca3a9a5 | |||
| c821b54505 | |||
| da6354519a | |||
| 9434563b66 | |||
| 79e43a727b | |||
| 38690e7b3a | |||
| 3e5d884597 | |||
| 72cd558e2a | |||
| 0e2704fad2 |
@@ -1,8 +1,8 @@
|
|||||||
name: Build dioxus container
|
name: Build Mumble Web 2
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
BuildContainer:
|
linux_build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@@ -41,3 +41,30 @@ jobs:
|
|||||||
name: mumble-web2-proxy
|
name: mumble-web2-proxy
|
||||||
path: target/release/mumble-web2-proxy
|
path: target/release/mumble-web2-proxy
|
||||||
retention-days: 5
|
retention-days: 5
|
||||||
|
|
||||||
|
windows_build:
|
||||||
|
runs-on: windows
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
|
#- uses: Swatinem/rust-cache@v2
|
||||||
|
|
||||||
|
#- uses: ilammy/msvc-dev-cmd@v1
|
||||||
|
|
||||||
|
#- name: Check dioxus project
|
||||||
|
# run: cargo check -p mumble-web2-gui --features desktop
|
||||||
|
|
||||||
|
- name: Bundle dioxus project
|
||||||
|
run: docker run `
|
||||||
|
--mount type=bind,source=${PWD},target=/app `
|
||||||
|
git.ohea.xyz/mumble/mumble-web2/windows-release-builder:latest `
|
||||||
|
cd /app && `
|
||||||
|
dx bundle --verbose --trace -p mumble-web2-gui --release --windows
|
||||||
|
|
||||||
|
- name: Upload mumble-web2-gui Windows Artifact
|
||||||
|
uses: https://gitea.com/actions/gitea-upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: mumble-web2-gui-windows
|
||||||
|
path: gui/dist
|
||||||
|
retention-days: 5
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
name: Build Mumble Web 2 release builder containers
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
windows-release-builder-container-build:
|
||||||
|
runs-on: windows
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Log in to container registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.ohea.xyz
|
||||||
|
username: ${{ secrets.CI_REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.CI_REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build Windows image
|
||||||
|
run: |
|
||||||
|
docker build -t git.ohea.xyz/mumble/mumble-web2/windows-release-builder:latest -f ./docker/windows-release-builder.Dockerfile .
|
||||||
|
docker push git.ohea.xyz/mumble/mumble-web2/windows-release-builder:latest
|
||||||
@@ -2,13 +2,12 @@
|
|||||||
|
|
||||||
## Running Desktop
|
## Running Desktop
|
||||||
|
|
||||||
1. `cargo install dioxus-cli --version 0.6.3`
|
1. `cargo install dioxus-cli --version 0.7.1`
|
||||||
2. `dx run -p mumble-web2-gui --platform desktop --release`
|
2. `dx run -p mumble-web2-gui --platform desktop --release`
|
||||||
|
|
||||||
|
|
||||||
## Running Web (development)
|
## Running Web (development)
|
||||||
|
|
||||||
1. `cargo install dioxus-cli --version 0.6.3`
|
1. `cargo install dioxus-cli --version 0.7.1`
|
||||||
3. `dx serve -p mumble-web2-gui --platform web`
|
3. `dx serve -p mumble-web2-gui --platform web`
|
||||||
2. `cd docker && docker compose up`
|
2. `cd docker && docker compose up`
|
||||||
4. connect to `https://localhost:64444`
|
4. connect to `https://localhost:64444`
|
||||||
@@ -16,7 +15,7 @@
|
|||||||
|
|
||||||
## Running Web (with `proxy` only)
|
## Running Web (with `proxy` only)
|
||||||
|
|
||||||
1. `cargo install dioxus-cli --version 0.6.3`
|
1. `cargo install dioxus-cli --version 0.7.1`
|
||||||
2. `dx build -p mumble-web2-gui --platform web --release`
|
2. `dx build -p mumble-web2-gui --platform web --release`
|
||||||
3. `cp config.toml.example config.toml`
|
3. `cp config.toml.example config.toml`
|
||||||
4. `cargo run -p mumble-web2-proxy` in the background
|
4. `cargo run -p mumble-web2-proxy` in the background
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# Install the Dioxus CLI
|
|
||||||
#cargo install dioxus-cli --version 0.7.1
|
|
||||||
|
|
||||||
# Build the Dioxus web app (assumes workspace subproject at ./gui)
|
|
||||||
cd gui
|
|
||||||
dx build --platform web --release
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
# Build the backend (proxy package)
|
|
||||||
#cargo build --release -p proxy
|
|
||||||
#
|
|
||||||
## Prepare artifact directories
|
|
||||||
#mkdir -p artifacts
|
|
||||||
#
|
|
||||||
## Copy Dioxus webroot (usually at gui/dist)
|
|
||||||
#cp -r gui/dist artifacts/webroot
|
|
||||||
#
|
|
||||||
## Copy backend binary (proxy)
|
|
||||||
## Finds the built binary under target/release/
|
|
||||||
#PROXY_PATH=$(cargo metadata --format-version=1 --no-deps |
|
|
||||||
# jq -r '.packages[] | select(.name=="proxy") | .targets[] | select(.kind[] == "bin") | .name')
|
|
||||||
#cp "target/release/$PROXY_PATH" "artifacts/proxy"
|
|
||||||
#
|
|
||||||
#echo "Artifacts have been prepared at ./artifacts"
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
mkdir -p ./cargo-tmp
|
|
||||||
mkdir -p ./docker-target
|
|
||||||
|
|
||||||
rm -rf ./docker-tmp
|
|
||||||
mkdir ./docker-tmp
|
|
||||||
rsync -av --exclude-from=.gitignore --exclude .git/ --exclude docker-tmp/ --exclude cargo-tmp/ --exclude docker-target/ ./ ./docker-tmp/
|
|
||||||
|
|
||||||
docker build -f ./docker/release-builder.Dockerfile -t mumbleweb2-builder:latest .
|
|
||||||
|
|
||||||
docker run -it --rm \
|
|
||||||
-v "$(pwd)/docker-tmp":/work \
|
|
||||||
-v "$(pwd)/docker-target":/work/target \
|
|
||||||
-v "$(pwd)/cargo-tmp/registry":/usr/local/cargo/registry \
|
|
||||||
-v "$(pwd)/cargo-tmp/git":/usr/local/cargo/git \
|
|
||||||
-w /work \
|
|
||||||
mumbleweb2-builder:latest /bin/bash ./bin/build-release.sh
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
FROM rust:1-bookworm AS base
|
|
||||||
|
|
||||||
# Install cargo-binstall for faster CLI installation
|
|
||||||
#RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y screen
|
|
||||||
|
|
||||||
# Install dioxus-cli version 0.6.3 specifically
|
|
||||||
RUN cargo install dioxus-cli --version 0.6.3
|
|
||||||
|
|
||||||
# Set working directory
|
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
# Add wasm32 target for web development
|
|
||||||
RUN rustup target add wasm32-unknown-unknown
|
|
||||||
|
|
||||||
# Set environment variables
|
|
||||||
ENV PATH="/root/.cargo/bin:$PATH"
|
|
||||||
|
|
||||||
# Default command (can be overridden in docker-compose)
|
|
||||||
CMD ["dx", "--help"]
|
|
||||||
|
|
||||||
@@ -48,8 +48,6 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "64738:64738/tcp"
|
- "64738:64738/tcp"
|
||||||
- "64738:64738/udp"
|
- "64738:64738/udp"
|
||||||
environment:
|
|
||||||
- MUMBLE_CONFIG_WELCOMETEXT=Welcome to the Mumble server
|
|
||||||
network_mode: host
|
network_mode: host
|
||||||
#volumes:
|
#volumes:
|
||||||
# caddy_data:
|
# caddy_data:
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
#FROM rust:latest
|
|
||||||
FROM rust:1.90.0-trixie
|
|
||||||
|
|
||||||
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
|
|
||||||
|
|
||||||
RUN cargo binstall dioxus-cli --version 0.6.3
|
|
||||||
@@ -0,0 +1,55 @@
|
|||||||
|
# escape=`
|
||||||
|
|
||||||
|
# Use a Windows Server Core 2025 image that matches our build host.
|
||||||
|
# If the version doesn't match the build host we cannot run
|
||||||
|
# this container. I'm not sure with what specificity it has to
|
||||||
|
# match, so let's pin this and then upgrade it as we upgrade
|
||||||
|
# the host.
|
||||||
|
FROM mcr.microsoft.com/windows/servercore:10.0.26100.7171
|
||||||
|
|
||||||
|
ENV CMAKE_VERSION=3.31.10
|
||||||
|
ENV CMAKE_ARCH=windows-x86_64
|
||||||
|
|
||||||
|
# Restore the default Windows shell for correct batch processing.
|
||||||
|
SHELL ["cmd", "/S", "/C"]
|
||||||
|
|
||||||
|
RUN curl -SL --output vs_buildtools.exe https://aka.ms/vs/17/release/vs_buildtools.exe `
|
||||||
|
&& ( start /w vs_buildtools.exe --quiet --wait --norestart --nocache `
|
||||||
|
--installPath "%ProgramFiles(x86)%\Microsoft Visual Studio\2022\BuildTools" `
|
||||||
|
--add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
|
||||||
|
--add Microsoft.VisualStudio.Component.Windows10SDK.19041 `
|
||||||
|
--add Microsoft.VisualStudio.Workload.NativeDesktop `
|
||||||
|
|| IF "%ERRORLEVEL%"=="3010" EXIT 0 )
|
||||||
|
|
||||||
|
SHELL ["powershell", "-NoLogo", "-ExecutionPolicy", "Bypass", "-Command"]
|
||||||
|
|
||||||
|
RUN $ErrorActionPreference = 'Stop'; `
|
||||||
|
$url = \"https://github.com/Kitware/CMake/releases/download/v$env:CMAKE_VERSION/cmake-$env:CMAKE_VERSION-$env:CMAKE_ARCH.zip\"; `
|
||||||
|
$out = 'C:\\cmake.zip'; `
|
||||||
|
(New-Object System.Net.WebClient).DownloadFile($url, $out); `
|
||||||
|
Expand-Archive -Path $out -DestinationPath 'C:\\'; `
|
||||||
|
Remove-Item $out; `
|
||||||
|
$cmakeDir = \"C:\\cmake-$env:CMAKE_VERSION-$env:CMAKE_ARCH\\bin\"; `
|
||||||
|
[Environment]::SetEnvironmentVariable('PATH', $cmakeDir + ';' + $env:PATH, 'Machine')
|
||||||
|
|
||||||
|
# Install Chocolatey
|
||||||
|
RUN Set-ExecutionPolicy Bypass -Scope Process; `
|
||||||
|
[System.Net.ServicePointManager]::SecurityProtocol = `
|
||||||
|
[System.Net.SecurityProtocolType]::Tls12; `
|
||||||
|
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
|
||||||
|
|
||||||
|
# Install Git and Rustup via Chocolatey
|
||||||
|
RUN choco install git -y --no-progress
|
||||||
|
RUN choco install rustup.install -y --no-progress
|
||||||
|
|
||||||
|
# Install stable Rust toolchain
|
||||||
|
RUN rustup toolchain install stable-x86_64-pc-windows-msvc
|
||||||
|
RUN rustup default stable-x86_64-pc-windows-msvc
|
||||||
|
|
||||||
|
SHELL ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]
|
||||||
|
# Install dioxus-cli from git HEAD with cargo
|
||||||
|
RUN cargo install --git https://github.com/DioxusLabs/dioxus dioxus-cli
|
||||||
|
|
||||||
|
# Define the entry point for the docker container.
|
||||||
|
# This entry point starts the developer command prompt and launches the PowerShell shell.
|
||||||
|
ENTRYPOINT ["C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\Common7\\Tools\\VsDevCmd.bat", "&&", "powershell.exe", "-NoLogo", "-ExecutionPolicy", "Bypass"]
|
||||||
@@ -31,3 +31,13 @@ script = []
|
|||||||
style = []
|
style = []
|
||||||
# Javascript code file
|
# Javascript code file
|
||||||
script = []
|
script = []
|
||||||
|
|
||||||
|
[bundle]
|
||||||
|
identifier = "xyz.ohea.mumble-web-2"
|
||||||
|
publisher = "OheaCorp"
|
||||||
|
icon = [
|
||||||
|
"icons/32x32.png",
|
||||||
|
"icons/256x256.png",
|
||||||
|
"gui/assets/favicon.ico",
|
||||||
|
"icons/icon.icns",
|
||||||
|
]
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 288 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 9.2 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 967 B |
File diff suppressed because one or more lines are too long
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
Reference in New Issue
Block a user