Skip to content

Commit 5cc7592

Browse files
authored
Enable offline account support
1 parent 28ad988 commit 5cc7592

4 files changed

Lines changed: 49 additions & 33 deletions

File tree

.github/workflows/build.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -68,42 +68,42 @@ jobs:
6868
cmake-preset: linux
6969
qt-version: 6.10.2
7070

71-
- os: ubuntu-24.04-arm
72-
artifact-name: Linux-aarch64
73-
cmake-preset: linux
74-
qt-version: 6.10.2
71+
# - os: ubuntu-24.04-arm
72+
# artifact-name: Linux-aarch64
73+
# cmake-preset: linux
74+
# qt-version: 6.10.2
7575

7676
- os: windows-2022
7777
artifact-name: Windows-MinGW-w64
7878
cmake-preset: windows_mingw
7979
msystem: CLANG64
8080
vcvars-arch: amd64_x86
8181

82-
- os: windows-11-arm
83-
artifact-name: Windows-MinGW-arm64
84-
cmake-preset: windows_mingw
85-
msystem: CLANGARM64
86-
vcvars-arch: arm64
87-
88-
- os: windows-2022
89-
artifact-name: Windows-MSVC
90-
cmake-preset: windows_msvc
91-
# TODO(@getchoo): This is the default in setup-dependencies/windows. Why isn't it working?!?!
92-
vcvars-arch: amd64
93-
qt-version: 6.10.2
94-
95-
- os: windows-11-arm
96-
artifact-name: Windows-MSVC-arm64
97-
cmake-preset: windows_msvc
98-
vcvars-arch: arm64
99-
qt-version: 6.10.2
82+
# - os: windows-11-arm
83+
# artifact-name: Windows-MinGW-arm64
84+
# cmake-preset: windows_mingw
85+
# msystem: CLANGARM64
86+
# vcvars-arch: arm64
87+
88+
# - os: windows-2022
89+
# artifact-name: Windows-MSVC
90+
# cmake-preset: windows_msvc
91+
# # TODO(@getchoo): This is the default in setup-dependencies/windows. Why isn't it working?!?!
92+
# vcvars-arch: amd64
93+
# qt-version: 6.10.2
94+
95+
# - os: windows-11-arm
96+
# artifact-name: Windows-MSVC-arm64
97+
# cmake-preset: windows_msvc
98+
# vcvars-arch: arm64
99+
# qt-version: 6.10.2
100100

101101
- os: macos-26
102102
artifact-name: macOS
103103
cmake-preset: macos_universal
104104
macosx-deployment-target: 12.0
105105
qt-version: 6.9.3
106-
106+
107107
runs-on: ${{ matrix.os }}
108108

109109
defaults:

.github/workflows/release.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
- name: Package artifacts properly
3535
run: |
3636
mv ${{ github.workspace }}/PrismLauncher-source PrismLauncher-${{ env.VERSION }}
37-
mv PrismLauncher-Linux-Qt6-Portable*/PrismLauncher-portable.tar.gz PrismLauncher-Linux-Qt6-Portable-${{ env.VERSION }}.tar.gz
38-
mv PrismLauncher-Linux-aarch64-Qt6-Portable*/PrismLauncher-portable.tar.gz PrismLauncher-Linux-aarch64-Qt6-Portable-${{ env.VERSION }}.tar.gz
39-
mv PrismLauncher-*.AppImage/PrismLauncher-*-x86_64.AppImage PrismLauncher-Linux-x86_64.AppImage
40-
mv PrismLauncher-*.AppImage.zsync/PrismLauncher-*-x86_64.AppImage.zsync PrismLauncher-Linux-x86_64.AppImage.zsync
41-
mv PrismLauncher-*.AppImage/PrismLauncher-*-aarch64.AppImage PrismLauncher-Linux-aarch64.AppImage
42-
mv PrismLauncher-*.AppImage.zsync/PrismLauncher-*-aarch64.AppImage.zsync PrismLauncher-Linux-aarch64.AppImage.zsync
43-
mv PrismLauncher-macOS*/PrismLauncher.zip PrismLauncher-macOS-${{ env.VERSION }}.zip
44-
37+
mv PrismLauncher-Linux-Qt6-Portable*/PrismLauncher-portable.tar.gz PrismLauncher-Linux-Qt6-Portable-${{ env.VERSION }}.tar.gz || true
38+
mv PrismLauncher-Linux-aarch64-Qt6-Portable*/PrismLauncher-portable.tar.gz PrismLauncher-Linux-aarch64-Qt6-Portable-${{ env.VERSION }}.tar.gz || true
39+
mv PrismLauncher-*.AppImage/PrismLauncher-*-x86_64.AppImage PrismLauncher-Linux-x86_64.AppImage || true
40+
mv PrismLauncher-*.AppImage.zsync/PrismLauncher-*-x86_64.AppImage.zsync PrismLauncher-Linux-x86_64.AppImage.zsync || true
41+
mv PrismLauncher-*.AppImage/PrismLauncher-*-aarch64.AppImage PrismLauncher-Linux-aarch64.AppImage || true
42+
mv PrismLauncher-*.AppImage.zsync/PrismLauncher-*-aarch64.AppImage.zsync PrismLauncher-Linux-aarch64.AppImage.zsync || true
43+
mv PrismLauncher-macOS*/PrismLauncher.zip PrismLauncher-macOS-${{ env.VERSION }}.zip || true
44+
4545
tar --exclude='.git' -czf PrismLauncher-${{ env.VERSION }}.tar.gz PrismLauncher-${{ env.VERSION }}
4646
4747
for d in PrismLauncher-Windows-MSVC*; do

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
This project does not have any affiliation to PrismLauncher, nor Microsoft.\
2+
This is a fork of prism launcher which enables Adding offline account.\
3+
This is done in order to test, and experiment.\
4+
This application does not support or endorse piracy. You must own a legitimate copy of the game purchased from an official store.
5+
6+
This may come with its own flaws such as:
7+
- Applications are not signed, and OS may give warning
8+
- Multiplayer functionality is limited
9+
10+
> ⚠️ NOTE: The application for All 3 OS'es is not signed, and that is to be expected as this is just for experiments. They can be safely ignored, if you have downloaded the application from the RELEASES section of this repository or if you're updating from the offical prism launcher.
11+
12+
Updates:\
13+
Updates will be released every 2 weeks after fetching from the source, or will be triggered manually if a ISSUE is created.
14+
15+
---
16+
117
<p align="center">
218
<picture>
319
<source media="(prefers-color-scheme: dark)" srcset="/program_info/org.prismlauncher.PrismLauncher.logo-darkmode.svg">

launcher/minecraft/auth/MinecraftAccount.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ class MinecraftAccount : public QObject, public Usable {
116116

117117
AccountType accountType() const noexcept { return data.type; }
118118

119-
bool ownsMinecraft() const { return data.type != AccountType::Offline && data.minecraftEntitlement.ownsMinecraft; }
120-
119+
bool ownsMinecraft() const { return true; }
120+
121121
bool hasProfile() const { return data.profileId().size() != 0; }
122122

123123
QString typeString() const

0 commit comments

Comments
 (0)