diff --git a/.SRCINFO b/.SRCINFO index 18ea36c..a3f8fe9 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,8 +1,8 @@ -pkgbase = lce-emerald-launcher +pkgbase = emerald-legacy-launcher pkgdesc = FOSS, cross-platform launcher for Minecraft Legacy Console Edition pkgver = 1.0.0 pkgrel = 1 - url = https://github.com/LCE-Hub/LCE-Emerald-Launcher + url = https://github.com/Emerald-Legacy-Launcher/Emerald-Legacy-Launcher arch = x86_64 license = GPL-3.0 makedepends = git @@ -24,8 +24,7 @@ pkgbase = lce-emerald-launcher depends = webkit2gtk-4.1 optdepends = discord: Discord RPC support provides = emerald-legacy-launcher - conflicts = emerald-legacy-launcher - source = lce-emerald-launcher::git+https://github.com/LCE-Hub/LCE-Emerald-Launcher#branch=main + source = emerald-legacy-launcher::git+https://github.com/Emerald-Legacy-Launcher/Emerald-Legacy-Launcher#branch=main sha256sums = SKIP -pkgname = lce-emerald-launcher +pkgname = emerald-legacy-launcher diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 17fc7ef..65739f1 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -64,15 +64,15 @@ jobs: tagName: nightly releaseName: 'Emerald Nightly' releaseBody: | - # LCE Emerald Launcher (Nightly) + # Emerald Legacy Launcher (Nightly) # What to download? - - `LCE.Emerald.Launcher-*.rpm` for GNU/Linux (RHEL) - - `LCE.Emerald.Launcher-*.deb` for GNU/Linux (Debian+Ubuntu) - - `LCE.Emerald.Launcher-*.AppImage` for GNU/Linux (Universal) - - `LCE.Emerald.Launcher-*_x64.dmg` for macOS (Intel) - - `LCE.Emerald.Launcher-*_aarch64.dmg` for macOS (M-series) - - `LCE.Emerald.Launcher-*.exe` for Windows (Setup) - - `LCE.Emerald.Launcher-*.msi` for Windows (Setup) + - `Emerald.Legacy.Launcher-*.rpm` for GNU/Linux (RHEL) + - `Emerald.Legacy.Launcher-*.deb` for GNU/Linux (Debian+Ubuntu) + - `Emerald.Legacy.Launcher-*.AppImage` for GNU/Linux (Universal) + - `Emerald.Legacy.Launcher-*_x64.dmg` for macOS (Intel) + - `Emerald.Legacy.Launcher-*_aarch64.dmg` for macOS (M-series) + - `Emerald.Legacy.Launcher-*.exe` for Windows (Setup) + - `Emerald.Legacy.Launcher-*.msi` for Windows (Setup) --- # Windows SmartScreen This software is completely safe. Because the launcher is unsigned, you will see a "Windows protected your PC" window. To proceed: @@ -101,12 +101,12 @@ jobs: submodules: true - uses: flatpak/flatpak-github-actions/flatpak-builder@v6 with: - bundle: io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.flatpak - manifest-path: flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.yml + bundle: io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak + manifest-path: flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.yml cache-key: flatpak-builder-${{ github.sha }} - uses: softprops/action-gh-release@v2 with: - files: io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.flatpak + files: io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak tag_name: nightly env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 92e319f..c897102 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -79,31 +79,31 @@ jobs: pkgbuild --root "$APP_PATH/.." \ --install-location /Applications \ --scripts pkg_temp/scripts \ - --identifier "com.lce.emerald" \ + --identifier "com.emerald.legacy" \ --version "1.0.0" \ --install-location "/Applications" \ --root "$APP_PATH" \ - "LCE-Emerald-Launcher.pkg" + "Emerald-Legacy-Launcher.pkg" # Move PKG to bundle directory mkdir -p src-tauri/target/release/bundle/macos/ - mv "LCE-Emerald-Launcher.pkg" src-tauri/target/release/bundle/macos/ + mv "Emerald-Legacy-Launcher.pkg" src-tauri/target/release/bundle/macos/ - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tagName: v__VERSION__ - releaseName: 'LCE Emerald v__VERSION__' + releaseName: 'Emerald v__VERSION__' releaseBody: | # What to download? - - `LCE.Emerald.Launcher-*.rpm` for GNU/Linux (RHEL) - - `LCE.Emerald.Launcher-*.deb` for GNU/Linux (Debian+Ubuntu) - - `LCE.Emerald.Launcher-*.AppImage` for GNU/Linux (Universal, Currently Broken) - - `LCE.Emerald.Launcher-*_x64.dmg` for macOS (Intel) - - `LCE.Emerald.Launcher-*_aarch64.dmg` for macOS (M-series) - - `LCE.Emerald.Launcher-*.exe` for Windows (Setup) - - `LCE.Emerald.Launcher-*.msi` for Windows (Setup) - - `io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.flatpak` for GNU/Linux (Flatpak, Recommended) + - `Emerald.Legacy.Launcher-*.rpm` for GNU/Linux (RHEL) + - `Emerald.Legacy.Launcher-*.deb` for GNU/Linux (Debian+Ubuntu) + - `Emerald.Legacy.Launcher-*.AppImage` for GNU/Linux (Universal, Currently Broken) + - `Emerald.Legacy.Launcher-*_x64.dmg` for macOS (Intel) + - `Emerald.Legacy.Launcher-*_aarch64.dmg` for macOS (M-series) + - `Emerald.Legacy.Launcher-*.exe` for Windows (Setup) + - `Emerald.Legacy.Launcher-*.msi` for Windows (Setup) + - `Emerald.Legacy.Launcher.flatpak` for GNU/Linux (Flatpak, Recommended) --- # Windows SmartScreen This software is completely safe. Because the launcher is unsigned, you will see a "Windows protected your PC" window. To proceed: @@ -134,12 +134,12 @@ jobs: run: sleep 10 - uses: flatpak/flatpak-github-actions/flatpak-builder@v6 with: - bundle: io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.flatpak - manifest-path: flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.yml + bundle: Emerald.Legacy.Launcher.flatpak + manifest-path: flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.yml cache-key: flatpak-builder-${{ github.sha }} - uses: softprops/action-gh-release@v2 with: tag_name: v${{ needs.get-version.outputs.version }} - files: io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.flatpak + files: Emerald.Legacy.Launcher.flatpak env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 14e73b2..309885f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ -# Contributing to LCE Emerald Launcher +# Contributing to Emerald Legacy Launcher Thank you for considering contributing to Emerald! We appreciate all types of contributions, including bug fixes, new features, and documentation improvements. diff --git a/LICENSE b/LICENSE index f3269d9..87ad063 100644 --- a/LICENSE +++ b/LICENSE @@ -631,7 +631,7 @@ to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. - LCE Emerald Launcher - The unified hub for LCE preservation. + Emerald Legacy Launcher - The unified hub for LCE preservation. Copyright (C) 2026 The Emerald Team and contributors This program is free software: you can redistribute it and/or modify diff --git a/PKGBUILD b/PKGBUILD deleted file mode 100644 index 62c7a01..0000000 --- a/PKGBUILD +++ /dev/null @@ -1,34 +0,0 @@ -# Maintainer: NEOAPPS -# Maintainer: Santiago Fisela -pkgname=lce-emerald-launcher -pkgver=1.0.0 -pkgrel=1 -pkgdesc="FOSS, cross-platform launcher for Minecraft Legacy Console Edition" -arch=('x86_64') -url="https://github.com/LCE-Hub/LCE-Emerald-Launcher" -license=('GPL-3.0') -depends=('cairo' 'desktop-file-utils' 'gdk-pixbuf2' 'glib2' 'gtk3' 'hicolor-icon-theme' 'libsoup' 'pango' 'webkit2gtk-4.1') -optdepends=('discord: Discord RPC support') -makedepends=('git' 'openssl' 'appmenu-gtk-module' 'libappindicator-gtk3' 'librsvg' 'cargo' 'pnpm' 'nodejs') -provides=('emerald-legacy-launcher') -conflicts=('emerald-legacy-launcher') -source=("$pkgname::git+$url#branch=main") -sha256sums=('SKIP') -pkgver() { - cd "$srcdir/$pkgname" - ( set -o pipefail - git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)" - ) -} - -build() { - cd "$srcdir/$pkgname" - pnpm install - pnpm tauri build --bundles=deb -} - -package() { - cd "$srcdir/$pkgname" - cp -a src-tauri/target/release/bundle/deb/LCE*_*_*/data/* "${pkgdir}" -} \ No newline at end of file diff --git a/README.md b/README.md index c3142f6..bd75eee 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
- LCE Emerald Launcher Logo -

LCE Emerald Launcher

+ Emerald Legacy Launcher Logo +

Emerald Legacy Launcher

FOSS cross-platform launcher for Minecraft Legacy Console Edition

@@ -14,7 +14,7 @@ Donate to the Project - + Join the Community

@@ -22,7 +22,7 @@ --- > [!IMPORTANT] -> MacOs's version of **LCE Emerald Launcher** is currently in beta. +> **Emerald Legacy Launcher is currently in Beta.** > Expect minor bugs, frequent updates, and features that are still being polished as we work toward a stable release. --- @@ -47,7 +47,7 @@ ## Overview -LCE Emerald Launcher is a **high-performance, open-source launcher** for Minecraft Legacy Console Edition (LCE). Built to centralize the fragmented LCE scene, it provides a lightweight, unified hub for playing your favorite console versions of Minecraft on PC. +Emerald Legacy Launcher is a **high-performance, open-source launcher** for Minecraft Legacy Console Edition (LCE). Built to centralize the fragmented LCE scene, it provides a lightweight, unified hub for playing your favorite console versions of Minecraft on PC. **Why Emerald?** Traditional launchers often rely on bloated frameworks, consuming excessive resources. Emerald utilizes a modern **Rust/Tauri** architecture, using only **~15MB of RAM** — leaving your PC's resources dedicated to the game itself. @@ -80,7 +80,7 @@ The project started as a solo effort and has grown into a collaborative communit ## Game Versions & Partnerships -LCE Emerald Launcher integrates multiple community-driven builds of Minecraft Legacy Console Edition. Each build brings unique features and improvements to the classic LCE experience. +Emerald Legacy Launcher integrates multiple community-driven builds of Minecraft Legacy Console Edition. Each build brings unique features and improvements to the classic LCE experience. ### Available Builds @@ -103,7 +103,7 @@ Stay tuned for updates on this exciting partnership! :) ## Screenshots -LCE Emerald Launcher Screenshot +Emerald Legacy Launcher Screenshot --- @@ -111,7 +111,7 @@ Stay tuned for updates on this exciting partnership! :) ### Windows -Download the latest release from [GitHub Releases](https://github.com/LCE-Hub/LCE-Emerald-Launcher/releases): +Download the latest release from [GitHub Releases](https://github.com/Emerald-Legacy-Launcher/Emerald-Legacy-Launcher/releases): | Format | Best For | |--------|----------| @@ -135,7 +135,7 @@ Download the latest release from [GitHub Releases](https://github.com/LCE-Hub/LC 2. Open the DMG and drag the app to Applications 3. If you see "app is damaged" error: - Right-click the app → **Open** → confirm **Open** - - Or run: `xattr -cr "/Applications/LCE Emerald Launcher.app"` + - Or run: `xattr -cr "/Applications/Emerald Legacy Launcher.app"` ### Linux @@ -180,8 +180,8 @@ sudo dnf install webkit2gtk4.1-devel libappindicator-gtk3-devel librsvg2-devel p ```bash # Clone the repository -git clone https://github.com/LCE-Hub/LCE-Emerald-Launcher.git -cd LCE-Emerald-Launcher +git clone https://github.com/Emerald-Legacy-Launcher/Emerald-Legacy-Launcher.git +cd Emerald-Legacy-Launcher # Install dependencies pnpm install @@ -236,7 +236,7 @@ sudo apt install --reinstall libwebkit2gtk-4.1-0 ## Roadmap -Track our progress and upcoming features on the [Development Roadmap](https://github.com/orgs/LCE-Hub/projects/2). +Track our progress and upcoming features on the [Development Roadmap](https://github.com/orgs/Emerald-Legacy-Launcher/projects/2). --- diff --git a/flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.desktop b/flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.desktop new file mode 100644 index 0000000..e013914 --- /dev/null +++ b/flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Emerald Legacy Launcher +Comment=FOSS cross-platform launcher for Minecraft Legacy Console Edition +Exec=emerald-legacy-launcher +Icon=io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher +Type=Application +Categories=Game; \ No newline at end of file diff --git a/flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.metainfo.xml b/flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.metainfo.xml similarity index 59% rename from flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.metainfo.xml rename to flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.metainfo.xml index 5163e5a..5e9956a 100644 --- a/flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.metainfo.xml +++ b/flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.metainfo.xml @@ -1,24 +1,24 @@ - io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher + io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher CC0-1.0 GPL-3.0-or-later - LCE Emerald Launcher + Emerald Legacy Launcher A launcher for Minecraft Legacy Console Edition

FOSS cross-platform launcher for Minecraft Legacy Console Edition

- io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.desktop - https://github.com/LCE-Hub/LCE-Emerald-Launcher + io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.desktop + https://github.com Emerald Team -

Latest stable release of the LCE Emerald Launcher.

+

Latest stable release of the Emerald Legacy Launcher.

- lce-emerald-launcher + emerald-legacy-launcher
diff --git a/flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.yml b/flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.yml new file mode 100644 index 0000000..10c2482 --- /dev/null +++ b/flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.yml @@ -0,0 +1,47 @@ +app-id: io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher +runtime: org.gnome.Platform +runtime-version: "48" +sdk: org.gnome.Sdk +sdk-extensions: + - org.freedesktop.Sdk.Extension.node20 + - org.freedesktop.Sdk.Extension.rust-stable +command: emerald-legacy-launcher +finish-args: + - --share=network + - --device=input + - --socket=x11 + - --socket=wayland + - --device=dri + - --filesystem=xdg-data + - --socket=pulseaudio + - --filesystem=xdg-run/pipewire-0 + +modules: + - shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json + - name: emerald-legacy-launcher + buildsystem: simple + build-options: + append-path: /usr/lib/sdk/node20/bin:/usr/lib/sdk/rust-stable/bin + build-args: + - --share=network + env: + PKG_CONFIG_PATH: /usr/lib/sdk/node20/lib/pkgconfig:/usr/lib/sdk/rust-stable/lib/pkgconfig + CARGO_HOME: /run/build/emerald-legacy-launcher/cargo + PNPM_HOME: /run/build/emerald-legacy-launcher/pnpm-home + build-commands: + - . /usr/lib/sdk/rust-stable/enable.sh + - mkdir -p /run/build/emerald-legacy-launcher/pnpm-bin + - curl -fSL https://github.com/pnpm/pnpm/releases/download/v10.32.1/pnpm-linux-x64 -o /run/build/emerald-legacy-launcher/pnpm-bin/pnpm # yes i hardcode URLs + - chmod +x /run/build/emerald-legacy-launcher/pnpm-bin/pnpm + - export PATH=/run/build/emerald-legacy-launcher/pnpm-bin:$PATH + - CI=true PATH=/run/build/emerald-legacy-launcher/pnpm-bin:$PATH /run/build/emerald-legacy-launcher/pnpm-bin/pnpm install + - CI=true PATH=/run/build/emerald-legacy-launcher/pnpm-bin:$PATH /run/build/emerald-legacy-launcher/pnpm-bin/pnpm tauri build --no-bundle + - install -Dm755 src-tauri/target/release/emerald-legacy-launcher /app/bin/emerald-legacy-launcher + - mkdir -p /app/share/emerald-legacy-launcher/ + - cp -r dist /app/share/emerald-legacy-launcher/ + - install -Dm644 flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.desktop /app/share/applications/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.desktop + - install -Dm644 flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.metainfo.xml /app/share/metainfo/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.metainfo.xml + - install -Dm644 public/images/icon.png /app/share/icons/hicolor/512x512/apps/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.png + sources: + - type: dir + path: .. diff --git a/flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.desktop b/flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.desktop deleted file mode 100644 index e0f4787..0000000 --- a/flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Name=LCE Emerald Launcher -Comment=FOSS cross-platform launcher for Minecraft Legacy Console Edition -Exec=lce-emerald-launcher -Icon=io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher -Type=Application -Categories=Game; \ No newline at end of file diff --git a/flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.yml b/flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.yml deleted file mode 100644 index b4e4c54..0000000 --- a/flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.yml +++ /dev/null @@ -1,47 +0,0 @@ -app-id: io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher -runtime: org.gnome.Platform -runtime-version: "48" -sdk: org.gnome.Sdk -sdk-extensions: - - org.freedesktop.Sdk.Extension.node20 - - org.freedesktop.Sdk.Extension.rust-stable -command: lce-emerald-launcher -finish-args: - - --share=network - - --device=input - - --socket=x11 - - --socket=wayland - - --device=dri - - --filesystem=xdg-data - - --socket=pulseaudio - - --filesystem=xdg-run/pipewire-0 - -modules: - - shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json - - name: lce-emerald-launcher - buildsystem: simple - build-options: - append-path: /usr/lib/sdk/node20/bin:/usr/lib/sdk/rust-stable/bin - build-args: - - --share=network - env: - PKG_CONFIG_PATH: /usr/lib/sdk/node20/lib/pkgconfig:/usr/lib/sdk/rust-stable/lib/pkgconfig - CARGO_HOME: /run/build/lce-emerald-launcher/cargo - PNPM_HOME: /run/build/lce-emerald-launcher/pnpm-home - build-commands: - - . /usr/lib/sdk/rust-stable/enable.sh - - mkdir -p /run/build/lce-emerald-launcher/pnpm-bin - - curl -fSL https://github.com/pnpm/pnpm/releases/download/v10.32.1/pnpm-linux-x64 -o /run/build/lce-emerald-launcher/pnpm-bin/pnpm # yes i hardcode URLs - - chmod +x /run/build/lce-emerald-launcher/pnpm-bin/pnpm - - export PATH=/run/build/lce-emerald-launcher/pnpm-bin:$PATH - - CI=true PATH=/run/build/lce-emerald-launcher/pnpm-bin:$PATH /run/build/lce-emerald-launcher/pnpm-bin/pnpm install - - CI=true PATH=/run/build/lce-emerald-launcher/pnpm-bin:$PATH /run/build/lce-emerald-launcher/pnpm-bin/pnpm tauri build --no-bundle - - install -Dm755 src-tauri/target/release/lce-emerald-launcher /app/bin/lce-emerald-launcher - - mkdir -p /app/share/lce-emerald-launcher/ - - cp -r dist /app/share/lce-emerald-launcher/ - - install -Dm644 flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.desktop /app/share/applications/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.desktop - - install -Dm644 flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.metainfo.xml /app/share/metainfo/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.metainfo.xml - - install -Dm644 public/images/icon.png /app/share/icons/hicolor/512x512/apps/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.png - sources: - - type: dir - path: .. diff --git a/index.html b/index.html index 08e17b3..fe4ae1e 100644 --- a/index.html +++ b/index.html @@ -1,18 +1,16 @@ + + + + + + + Emerald Legacy Launcher + - - - - - - - LCE Emerald Launcher - - - -
- - - - \ No newline at end of file + +
+ + + diff --git a/package.json b/package.json index fef8c23..aba604d 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,8 @@ { - "name": "lce-emerald-launcher", + "name": "emerald-legacy-launcher", "private": true, "version": "1.0.1", "type": "module", - "repository": { - "type": "git", - "url": "git+https://github.com/LCE-Hub/LCE-Emerald-Launcher.git" - }, "scripts": { "dev": "vite", "build": "tsc && vite build", @@ -14,7 +10,7 @@ "tauri": "tauri", "tauri:build": "tauri build && pnpm run post-build:macos", "post-build:macos": "sh src-tauri/scripts/post-build-macos.sh", - "flatpak": "flatpak-builder --user --install-deps-from=flathub --repo=emerald-repo --force-clean build-flatpak flatpak/io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher.yml && flatpak build-bundle emerald-repo emerald.flatpak io.github.LCE_Emerald_Launcher.LCE_Emerald_Launcher" + "flatpak": "flatpak-builder --user --install-deps-from=flathub --repo=emerald-repo --force-clean build-flatpak flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.yml && flatpak build-bundle emerald-repo emerald.flatpak io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher" }, "dependencies": { "@tauri-apps/api": "^2", @@ -40,4 +36,4 @@ "tauri-plugin-drpc": "^1.0.3", "tauri-plugin-gamepad-api": "^0.0.5" } -} \ No newline at end of file +} diff --git a/scripts/fix-macos-quarantine.sh b/scripts/fix-macos-quarantine.sh index 5a8747b..dccf22d 100755 --- a/scripts/fix-macos-quarantine.sh +++ b/scripts/fix-macos-quarantine.sh @@ -6,7 +6,7 @@ set -e APP_PATH="$1" -BUNDLE_ID="com.lce.emerald" +BUNDLE_ID="com.emerald.legacy" if [ -z "$APP_PATH" ]; then echo "Usage: $0 " diff --git a/scripts/postinstall.sh b/scripts/postinstall.sh index 7d2f03a..67d968d 100755 --- a/scripts/postinstall.sh +++ b/scripts/postinstall.sh @@ -3,9 +3,9 @@ # Post-install script for PKG installer # Automatically removes quarantine attributes from the installed app -APP_PATH="$2/Applications/LCE Emerald Launcher.app" +APP_PATH="$2/Applications/Emerald Legacy Launcher.app" -echo "Removing quarantine attributes from LCE Emerald Launcher..." +echo "Removing quarantine attributes from Emerald Legacy Launcher..." if [ -d "$APP_PATH" ]; then xattr -cr "$APP_PATH" diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 20adde5..02cd558 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "lce-emerald-launcher" +name = "emerald-legacy-launcher" version = "1.0.1" description = "A FOSS, cross-platform launcher for Minecraft Legacy Edition" authors = ["Emerald Team"] diff --git a/src-tauri/scripts/post-build-macos.sh b/src-tauri/scripts/post-build-macos.sh index 279ce20..e1c5bb5 100755 --- a/src-tauri/scripts/post-build-macos.sh +++ b/src-tauri/scripts/post-build-macos.sh @@ -5,8 +5,8 @@ set -e -APP_NAME="LCE Emerald Launcher" -BUNDLE_ID="com.lce.emerald" +APP_NAME="Emerald Legacy Launcher" +BUNDLE_ID="com.emerald.legacy" BASE_DIR="src-tauri/target" echo "Running macOS post-build fixes" diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 3a719c5..7843b7d 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -93,10 +93,16 @@ fn get_app_dir(app: &AppHandle) -> PathBuf { #[cfg(target_os = "macos")] fn get_macos_runtime_dir(app: &AppHandle) -> PathBuf { - app.path().app_local_data_dir().unwrap_or_else(|_| { - let home = app.path().home_dir().ok().or_else(|| std::env::var("HOME").ok().map(PathBuf::from)).unwrap_or_else(|| PathBuf::from("/")); - home.join("Library").join("Application Support").join("com.lce.emerald") - }).join("runtime") + let home = app + .path() + .home_dir() + .ok() + .or_else(|| std::env::var("HOME").ok().map(PathBuf::from)) + .unwrap_or_else(|| PathBuf::from("/")); + home.join("Library") + .join("Application Support") + .join("com.emerald.legacy") + .join("runtime") } #[cfg(target_os = "macos")] @@ -146,7 +152,7 @@ fn unix_path_to_wine_z_path(unix_path: &PathBuf) -> String { } fn get_config_path(app: &AppHandle) -> PathBuf { - get_app_dir(app).join("lce_emerald_config.json") + get_app_dir(app).join("emerald_legacy_config.json") } #[tauri::command] @@ -161,21 +167,12 @@ fn save_config(app: AppHandle, config: AppConfig) { #[tauri::command] fn load_config(app: AppHandle) -> AppConfig { let path = get_config_path(&app); - if let Ok(content) = fs::read_to_string(&path) { + if let Ok(content) = fs::read_to_string(path) { if let Ok(config) = serde_json::from_str(&content) { return config; } } - let old_json_path = get_app_dir(&app).join("emerald_legacy_config.json"); - if let Ok(content) = fs::read_to_string(&old_json_path) { - if let Ok(config) = serde_json::from_str::(&content) { - let _ = save_config(app.clone(), config.clone()); - let _ = fs::remove_file(old_json_path); - return config; - } - } - let old_path = get_app_dir(&app).join("emerald_legacy_config.txt"); let username = fs::read_to_string(old_path).unwrap_or_else(|_| "Player".into()); AppConfig { @@ -263,7 +260,7 @@ fn get_available_runners(app: AppHandle) -> Vec { } } - if let Ok(output) = Command::new("ls").arg("/usr/share/lce-emerald-launcher/wine/bin/wine").output() { + if let Ok(output) = Command::new("ls").arg("/usr/share/emerald-legacy-launcher/wine/bin/wine").output() { if output.status.success() { let path = String::from_utf8_lossy(&output.stdout).trim().to_string(); if !seen_paths.contains(&path) { @@ -472,7 +469,7 @@ async fn setup_macos_runtime(window: tauri::Window, app: AppHandle) -> Result<() let client = reqwest::Client::new(); let release_text = client .get("https://api.github.com/repos/Gcenx/game-porting-toolkit/releases/latest") - .header("User-Agent", "LCE-Emerald-Launcher") + .header("User-Agent", "Emerald-Legacy-Launcher") .send() .await .map_err(|e| e.to_string())? @@ -509,7 +506,7 @@ async fn setup_macos_runtime(window: tauri::Window, app: AppHandle) -> Result<() let archive_path = runtime_dir.join(format!("gptk_{}", asset.name)); let response = client .get(&asset.browser_download_url) - .header("User-Agent", "LCE-Emerald-Launcher") + .header("User-Agent", "Emerald-Legacy-Launcher") .send() .await .map_err(|e| e.to_string())? @@ -956,7 +953,7 @@ async fn workshop_install(app: AppHandle, request: WorkshopInstallRequest) -> Re .and_then(|s| serde_json::from_str(&s).ok()) .unwrap_or_default(); - let raw_base = format!("https://raw.githubusercontent.com/LCE-Hub/Workshop/refs/heads/main/{}", request.package_id); + let raw_base = format!("https://raw.githubusercontent.com/Emerald-Legacy-Launcher/Workshop/refs/heads/main/{}", request.package_id); let tmp_dir = root.join(format!("workshop_tmp_{}", request.package_id)); fs::create_dir_all(&tmp_dir).map_err(|e| e.to_string())?; for (zip_name, placeholder) in &request.zips { @@ -1287,35 +1284,9 @@ async fn fetch_skin(username: String) -> Result<(String, String), String> { Ok((image_b64.to_string(), name_exact)) } -fn migrate_data(app: &tauri::App) { - let new_data_dir = app.path().app_local_data_dir().unwrap_or_default(); - if new_data_dir.as_os_str().is_empty() { return; } - - let parent = new_data_dir.parent().unwrap(); - let old_data_dir = parent.join("com.emerald.legacy"); - - if old_data_dir.exists() && !new_data_dir.exists() { - println!("Rebranding: Migrating data from {:?} to {:?}", old_data_dir, new_data_dir); - let _ = fs::create_dir_all(&new_data_dir); - if let Ok(entries) = fs::read_dir(&old_data_dir) { - for entry in entries.flatten() { - let name = entry.file_name(); - let dest = new_data_dir.join(name); - let _ = fs::rename(entry.path(), dest); - } - } - - let _ = fs::remove_dir_all(&old_data_dir); - } -} - #[cfg_attr(mobile, tauri::mobile_entry_point)] pub fn run() { tauri::Builder::default() - .setup(|app| { - migrate_data(app); - Ok(()) - }) .manage(DownloadState { token: Arc::new(Mutex::new(None)) }) .manage(GameState { child: Arc::new(Mutex::new(None)) }) .plugin(tauri_plugin_gamepad::init()) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index a5cb4da..a682e55 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,8 +1,8 @@ { "$schema": "https://schema.tauri.app/config/2", - "productName": "LCE Emerald Launcher", + "productName": "Emerald Legacy Launcher", "version": "1.0.1", - "identifier": "com.lce.emerald", + "identifier": "com.emerald.legacy", "build": { "beforeDevCommand": "npm run dev", "devUrl": "http://localhost:1420", @@ -13,7 +13,7 @@ "windows": [ { "label": "main", - "title": "LCE Emerald Launcher", + "title": "Emerald Legacy Launcher", "width": 1280, "height": 720, "minWidth": 1280, @@ -33,9 +33,9 @@ "active": true, "targets": "all", "linux": { - "appimage": { - "bundleMediaFramework": true - } + "appimage": { + "bundleMediaFramework": true + } }, "resources": [ "resources/DLC" @@ -55,4 +55,4 @@ "providerShortName": "Emerald" } } -} \ No newline at end of file +} diff --git a/src/components/layout/AppHeader.tsx b/src/components/layout/AppHeader.tsx index 7d275d1..c88d7ea 100644 --- a/src/components/layout/AppHeader.tsx +++ b/src/components/layout/AppHeader.tsx @@ -28,7 +28,7 @@ export const AppHeader = memo(function AppHeader({ playPressSound, uiFade }: App style={{ imageRendering: "pixelated" }} /> - LCE Emerald Launcher + Emerald Legacy Launcher
diff --git a/src/components/views/HomeView.tsx b/src/components/views/HomeView.tsx index 48edfa6..3925103 100644 --- a/src/components/views/HomeView.tsx +++ b/src/components/views/HomeView.tsx @@ -37,7 +37,7 @@ const HomeView = memo(function HomeView() { ? `Play Game` : `Download ${selectedVersionName}`, action: isDownloading - ? () => { } + ? () => {} : isInstalled ? handleLaunch : () => toggleInstall(profile), @@ -123,7 +123,7 @@ const HomeView = memo(function HomeView() {
{ @@ -140,7 +140,7 @@ const HomeView = memo(function HomeView() { /> { diff --git a/src/components/views/SetupView.tsx b/src/components/views/SetupView.tsx index a448fdf..7b7eba7 100644 --- a/src/components/views/SetupView.tsx +++ b/src/components/views/SetupView.tsx @@ -228,7 +228,7 @@ const SetupView: React.FC = ({ onComplete }) => {
LCE Emerald @@ -277,7 +277,7 @@ const SetupView: React.FC = ({ onComplete }) => { {currentStep === 0 && (

- Welcome to LCE Emerald + Welcome to Emerald Legacy

Let's configure your launcher

@@ -306,8 +306,8 @@ const SetupView: React.FC = ({ onComplete }) => {

{runtimeAlreadyInstalled - ? "LCE Emerald compatibility runtime is already installed" - : "LCE Emerald needs compatibility runtime for macOS" + ? "Emerald Legacy compatibility runtime is already installed" + : "Emerald Legacy needs compatibility runtime for macOS" }

@@ -413,7 +413,7 @@ const SetupView: React.FC = ({ onComplete }) => {

✓ Windows Native Support

-

LCE Emerald runs natively on Windows without additional requirements.

+

Emerald Legacy runs natively on Windows without additional requirements.

)} @@ -454,7 +454,7 @@ const SetupView: React.FC = ({ onComplete }) => {

Discord Rich Presence

-

Show your LCE Emerald status on Discord

+

Show your Emerald Legacy status on Discord

-

LCE Emerald is now configured and ready to use!

+

Emerald Legacy is now configured and ready to use!

)} diff --git a/src/components/views/WorkshopView.tsx b/src/components/views/WorkshopView.tsx index ca4d4bd..2646f29 100644 --- a/src/components/views/WorkshopView.tsx +++ b/src/components/views/WorkshopView.tsx @@ -3,8 +3,8 @@ import { motion, AnimatePresence } from 'framer-motion'; import { useUI, useAudio, useConfig, GameContext } from '../../context/LauncherContext'; import { TauriService } from '../../services/TauriService'; -const REGISTRY_URL = 'https://raw.githubusercontent.com/LCE-Hub/Workshop/refs/heads/main/registry.json'; -const RAW_BASE = 'https://raw.githubusercontent.com/LCE-Hub/Workshop/refs/heads/main'; +const REGISTRY_URL = 'https://raw.githubusercontent.com/Emerald-Legacy-Launcher/Workshop/refs/heads/main/registry.json'; +const RAW_BASE = 'https://raw.githubusercontent.com/Emerald-Legacy-Launcher/Workshop/refs/heads/main'; const CATEGORY_TABS = ['Skin', 'Texture', 'World', 'Mod', 'DLC'] as const; const ALL_TABS = [...CATEGORY_TABS, 'Search'] as const; diff --git a/src/hooks/useUpdateCheck.ts b/src/hooks/useUpdateCheck.ts index 8a3447d..f6fe239 100644 --- a/src/hooks/useUpdateCheck.ts +++ b/src/hooks/useUpdateCheck.ts @@ -2,7 +2,7 @@ import { useState, useEffect, useCallback } from "react"; import pkg from "../../package.json"; const CURRENT_VERSION = pkg.version; -const REPO_URL = "https://api.github.com/repos/LCE-Hub/LCE-Emerald-Launcher/releases/latest"; +const REPO_URL = "https://api.github.com/repos/Emerald-Legacy-Launcher/Emerald-Legacy-Launcher/releases/latest"; function isNewerVersion(latest: string, current: string): boolean { const latestParts = latest.split('.').map(Number); diff --git a/src/pages/App.tsx b/src/pages/App.tsx index 91e531f..0ffad27 100644 --- a/src/pages/App.tsx +++ b/src/pages/App.tsx @@ -153,7 +153,7 @@ export default function App() { message={updateMessage} onClose={clearUpdateMessage} onClick={() => - TauriService.openUrl("https://lce-hub.github.io/") + TauriService.openUrl("https://emerald-legacy-launcher.github.io/") } title="Update Available!" variant="update" diff --git a/src/services/RpcService.ts b/src/services/RpcService.ts index bd6caff..7ae7c2c 100644 --- a/src/services/RpcService.ts +++ b/src/services/RpcService.ts @@ -41,7 +41,7 @@ class RPC { const assets = new Assets(); assets.setLargeImage("logo"); - assets.setLargeText("LCE Emerald"); + assets.setLargeText("Emerald Legacy"); assets.setSmallImage("app-icon"); assets.setSmallText(isPlaying ? "Playing" : "In Menus"); activity.setAssets(assets); @@ -49,8 +49,8 @@ class RPC { activity.setTimestamps(new Timestamps(this.startTime)); activity.setButton([ - new Button("Discord", "https://discord.gg/A285mSfkcF"), - new Button("GitHub", "https://github.com/LCE-Hub/LCE-Emerald-Launcher") + new Button("Discord", "https://discord.gg/RHGRUwpmVc"), + new Button("GitHub", "https://github.com/Emerald-Legacy-Launcher/Emerald-Legacy-Launcher") ]); try {