Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Prism Launcher 8.2 #161

Draft
wants to merge 172 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
bca120e
Reduce mininmum memory amounts
HyperSoop Jul 11, 2023
c2b03d0
Fully reload the instance list once the folder is changed
Trial97 Aug 31, 2023
e66c3b9
Add game category to generated Linux shortcuts
hazelthatsme Oct 11, 2023
f7c9972
separated dependecy check from mod update
Trial97 Oct 23, 2023
d4d345e
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLaunc…
Trial97 Oct 24, 2023
9d972cc
Localize account type in account list
LocalSpook Oct 26, 2023
0de4d89
Remove top-level `const` qualifiers in function declarations
LocalSpook Oct 29, 2023
011e87b
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLaunc…
Trial97 Nov 6, 2023
6506e93
Removed some buttons
Trial97 Nov 7, 2023
5d5adbd
add update menu conditionaly
Trial97 Nov 7, 2023
c78d35d
added additional minecraft java path for windows
Trial97 Nov 7, 2023
8897f16
simplify microsoft login
Trial97 Nov 7, 2023
9ada8d9
Use same categories as main desktop entry
hazelthatsme Nov 7, 2023
1dea835
DCO Remediation Commit for Hazel Hofmann <[email protected]>
hazelthatsme Nov 7, 2023
54187a5
Update launcher/ui/dialogs/MSALoginDialog.cpp
Trial97 Nov 7, 2023
4dc9e65
Formated the suggestion
Trial97 Nov 7, 2023
d4b479a
chore(deps): update korthout/backport-action action to v2.1.1
renovate[bot] Nov 7, 2023
9d653f1
Update launcher/ui/dialogs/MSALoginDialog.cpp
Trial97 Nov 8, 2023
7313630
Update launcher/java/JavaUtils.cpp
Trial97 Nov 8, 2023
1d56bb8
Merge pull request #1805 from PrismLauncher/renovate/korthout-backpor…
getchoo Nov 8, 2023
403c4ba
Merge pull request #1799 from Trial97/improve_login
Scrumplex Nov 8, 2023
e4fecd1
Made sure mangoHub libs are present
Trial97 Nov 8, 2023
a7bfe38
Renamed Remove Metadata button
Trial97 Nov 8, 2023
ae62e48
Moved some buttons around
Trial97 Nov 8, 2023
6093399
Update LauncherPage.ui
Desoroxxx Nov 8, 2023
a302920
Merge pull request #1819 from Desoroxxx/patch-1
TheKodeToad Nov 8, 2023
0f68a2d
Only open/close groups on left button
TheKodeToad Nov 9, 2023
913d81e
Merge pull request #1821 from TheKodeToad/group-click-fix
TayouVR Nov 9, 2023
926942a
Fixed modrinth sort swap
Trial97 Nov 10, 2023
e7b2dbd
Merge pull request #1828 from Trial97/swap
TayouVR Nov 11, 2023
cb648c1
chore(nix): update lockfile
github-actions[bot] Nov 12, 2023
94d67b8
Merge pull request #1832 from PrismLauncher/update_flake_lock_action
Trial97 Nov 12, 2023
a991d48
Merge pull request #1798 from Trial97/java
TayouVR Nov 12, 2023
32a8d9b
Update launcher/ui/pages/instance/ModFolderPage.cpp
Trial97 Nov 13, 2023
0e57eec
Added missing variable from lambda capture
Trial97 Nov 13, 2023
a3445cb
Merge pull request #1704 from Leafeling/develop
Trial97 Nov 13, 2023
c05c001
Remove the dep if it fails for any reason
Trial97 Nov 13, 2023
361329d
Made resource columns resizable
Trial97 Nov 14, 2023
8909657
Added warning on mods update while running
Trial97 Nov 15, 2023
b5f8054
Merge pull request #1849 from Trial97/column_size
TayouVR Nov 17, 2023
1150249
Merge pull request #1746 from Trial97/toggle_deps
Trial97 Nov 17, 2023
7ef2bda
Improve description
TheKodeToad Nov 17, 2023
1a06a14
Added custom env vars to pre/post launch commands
Trial97 Nov 18, 2023
40cfa14
Merge pull request #1860 from Trial97/env_vars2
TheKodeToad Nov 18, 2023
69a49e8
chore(nix): update lockfile
github-actions[bot] Nov 19, 2023
e99926e
Added more open folder actions
Trial97 Nov 19, 2023
a8aa214
changed prism aniversary
Trial97 Nov 19, 2023
71ee0e7
Merge pull request #1868 from PrismLauncher/update_flake_lock_action
Scrumplex Nov 19, 2023
24f2102
Merge pull request #1869 from Trial97/icons_folder
TayouVR Nov 19, 2023
e3b7aed
chore: sync local flatpak manifest with flathub's
guihkx Nov 19, 2023
e499aa4
Merge pull request #1873 from guihkx/sync-flatpak-manifest
Scrumplex Nov 19, 2023
196d243
Fixed open link on settings page
Trial97 Nov 21, 2023
681e76c
(#1693) Notify user if /tmp directory has `noexec` mount option
bit69tream Nov 21, 2023
d1c3339
chore: disable x86_64-darwin in garnix
getchoo Nov 22, 2023
389d755
Merge pull request #1887 from PrismLauncher/getchoo-patch-2
Scrumplex Nov 23, 2023
364fb98
Merge pull request #1347 from HyperSoop/reduce-min-memory
Scrumplex Nov 23, 2023
b42434b
Merge remote-tracking branch 'upstream/develop' into const-in-declara…
Scrumplex Nov 23, 2023
48e9753
Merge pull request #1880 from Trial97/link
Scrumplex Nov 23, 2023
a1ac3ef
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLaunc…
Trial97 Nov 23, 2023
f18f714
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLaunc…
Trial97 Nov 23, 2023
673f82e
Merge branch 'war_ning' of github.com:Trial97/PrismLauncher into war_…
Trial97 Nov 23, 2023
6b3b54f
format
Trial97 Nov 23, 2023
5d6334e
Merge pull request #1762 from LocalSpook/const-in-declarations
Trial97 Nov 23, 2023
d60d089
Merge pull request #1751 from LocalSpook/account_type
Scrumplex Nov 23, 2023
2b17a61
Merge pull request #1589 from Trial97/instance_reload
Scrumplex Nov 23, 2023
7c9c3d2
Merge pull request #1815 from Trial97/fix_mangohub
Scrumplex Nov 23, 2023
a966289
Merge pull request #1852 from Trial97/war_ning
Scrumplex Nov 23, 2023
a2aa303
Merge pull request #1843 from Trial97/fix_not_found_dep
Scrumplex Nov 23, 2023
d414599
(#1693) Use a better approach to detect a noexec mount option
bit69tream Nov 23, 2023
85e875f
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLaunc…
Trial97 Nov 23, 2023
7f60274
Merge pull request #1871 from Trial97/cat_day
Trial97 Nov 23, 2023
67b51b7
chore(nix): update lockfile
github-actions[bot] Nov 26, 2023
6fa8e07
Merge pull request #1897 from PrismLauncher/update_flake_lock_action
getchoo Nov 27, 2023
a74c3d5
chore(deps): update cachix/install-nix-action action to v24
renovate[bot] Nov 28, 2023
5291268
Merge pull request #1900 from PrismLauncher/renovate/cachix-install-n…
Scrumplex Nov 28, 2023
4c59a1b
Merge pull request #1882 from bit69tream/notify-user-if-tmp-is-noexec
Scrumplex Nov 28, 2023
1ba6ed9
chore: update qt to qt 6.6.1
DioEgizio Dec 2, 2023
b6a366e
Merge pull request #1944 from PrismLauncher/backport-1908-to-release-8.x
Scrumplex Dec 11, 2023
52ccf3d
Merge pull request #1857 from Trial97/copy_time
Scrumplex Dec 11, 2023
426deb4
Merge pull request #1694 from Trial97/concurrent
Scrumplex Dec 11, 2023
3e54d4d
Merge pull request #1732 from Trial97/update_file2
Scrumplex Dec 11, 2023
2837ae8
Merge pull request #1738 from Trial97/some_removals
Scrumplex Dec 11, 2023
743d487
Merge pull request #1712 from Trial97/current_time
timoreo22 Dec 11, 2023
d0cb62c
#1945 resolve minimized windows pull from dock
theMackabu Dec 12, 2023
ff146d5
#1945 resolve issue on windows
theMackabu Dec 12, 2023
9aa8e1d
clang-format: fix formatting
theMackabu Dec 12, 2023
534b4e4
remove: maidfile.toml (local build tool)
theMackabu Dec 12, 2023
4dfe925
Revert change to .gitignore
TheKodeToad Dec 12, 2023
c216713
Merge pull request #1952 from PrismLauncher/backport-1947-to-release-8.x
Trial97 Dec 13, 2023
7568e90
Update GetModDependenciesTask.cpp
lumiscosity Dec 16, 2023
a108a01
Update ModFolderPage.cpp
lumiscosity Dec 16, 2023
199312d
one more
lumiscosity Dec 16, 2023
d880919
Merge pull request #1962 from PrismLauncher/backport-1960-to-release-8.x
Scrumplex Dec 16, 2023
6912782
fix: don't log katabasis by default
Scrumplex Dec 17, 2023
2f3715b
Merge pull request #1968 from PrismLauncher/backport-1964-to-release-8.x
TheKodeToad Dec 19, 2023
6816364
Happy new year :D
TheKodeToad Jan 2, 2024
270accf
Merge pull request #2000 from PrismLauncher/backport-1998-to-release-8.x
Scrumplex Jan 3, 2024
f31bf5a
Add online mode fix for legacy versions; minor refactors in legacy
TheKodeToad Dec 24, 2023
36d8ffd
Pass proxy
TheKodeToad Jan 2, 2024
b12dffe
Merge pull request #2001 from PrismLauncher/backport-1999-to-release-8.x
Scrumplex Jan 3, 2024
bb843b8
Fixed openURL cast for resource
Trial97 Dec 22, 2023
3b578ec
Merge pull request #2003 from PrismLauncher/backport-1978-to-release-8.x
Trial97 Jan 3, 2024
568734e
add archived project warning
lumiscosity Dec 22, 2023
42ea2ec
Strip newlines in mod descriptions
lumiscosity Dec 23, 2023
a009669
move simplify call to drawing
lumiscosity Dec 23, 2023
f4617d7
fix styling
lumiscosity Dec 23, 2023
744b81f
Merge pull request #2004 from PrismLauncher/backport-1979-to-release-8.x
Trial97 Jan 3, 2024
7ae3c05
Format java code
Trial97 Jan 3, 2024
afc73ff
Merge pull request #2007 from PrismLauncher/backport-2005-to-release-8.x
Trial97 Jan 4, 2024
5f4e0df
remove legacy processArguments code
tildejustin Dec 25, 2023
3fe18e0
Merge pull request #2008 from PrismLauncher/backport-1983-to-release-8.x
Trial97 Jan 5, 2024
4a17799
Fixed openAL placeholder
Trial97 Jan 5, 2024
b83b25c
Merge pull request #2015 from PrismLauncher/backport-2012-to-release-8.x
TayouVR Jan 6, 2024
422135b
Merge pull request #1771 from Trial97/account
Trial97 Jan 10, 2024
c088903
nix: deduplicate nixpkgs input
getchoo Jan 11, 2024
7d9b95b
nix: add garnix cache to nixConfig
getchoo Jan 11, 2024
6f5d074
fix: open paths directly
Scrumplex Dec 14, 2023
0ec3b9c
chore: remove maybe_unused
Scrumplex Dec 16, 2023
f858560
chore: remove unused methods
Scrumplex Dec 16, 2023
8dd898f
chore: improve param name
Scrumplex Jan 3, 2024
fec1a00
fix: simplify openPath calls
Scrumplex Jan 14, 2024
428260b
Merge pull request #2035 from PrismLauncher/backport-1954-to-release-8.x
Scrumplex Jan 17, 2024
bcb5b9c
Merge pull request #2034 from Scrumplex/feat/macos-signing
Scrumplex Jan 18, 2024
557fce5
Merge pull request #1825 from Trial97/ftb_import
Scrumplex Jan 18, 2024
5d0c83d
Merge pull request #1768 from Trial97/toggle_deps2
Scrumplex Jan 18, 2024
fce2163
Fixed askIfShouldUpdate dialog on mac
Trial97 Dec 3, 2023
a8b168d
Merge pull request #2043 from PrismLauncher/backport-1913-to-release-8.x
Trial97 Jan 18, 2024
bc63e19
Fixed open path a second time
Trial97 Jan 22, 2024
2fd5635
Merge pull request #2057 from PrismLauncher/backport-2053-to-release-8.x
Scrumplex Jan 23, 2024
a2aede0
fix: remove alpha notice on modrinth packs
DioEgizio Jan 24, 2024
1f5552d
Merge pull request #2064 from PrismLauncher/backport-2063-to-release-8.x
Trial97 Jan 24, 2024
5e3b7d8
Use `minecraft` instead of `.minecraft` for better accessibility
TheKodeToad Jan 21, 2024
cf6ffc3
Merge pull request #2084 from PrismLauncher/backport-2050-to-release-8.x
TayouVR Feb 1, 2024
25ba275
Revert "[Backport release-8.x] Use `minecraft` instead of `.minecraft…
TheKodeToad Feb 4, 2024
6f5cdde
Merge pull request #2091 from PrismLauncher/revert-2084-backport-2050…
TheKodeToad Feb 4, 2024
6badd69
Fix NetJob use-after-free
TheKodeToad Feb 11, 2024
fb04b6f
Fix ResourceModel error display
TheKodeToad Feb 11, 2024
ad9dbb4
Fix immediate free in Exception.h
TheKodeToad Feb 11, 2024
3f30e4c
Fix formatting issues
TheKodeToad Feb 12, 2024
256ed2a
Merge pull request #2121 from PrismLauncher/backport-2116-to-release-8.x
Scrumplex Feb 13, 2024
4ebce79
Use QTextFragment for inserting log lines
TheKodeToad Feb 6, 2024
816c900
Merge pull request #2122 from PrismLauncher/backport-2112-to-release-8.x
Scrumplex Feb 13, 2024
6da3614
Use absolute path to load MangoHUD library
TheComputerGuy96 Feb 13, 2024
e9991e9
Merge pull request #2129 from PrismLauncher/backport-2126-to-release-8.x
Scrumplex Feb 17, 2024
69d675d
Fixed curseforge neoforge import for 1.20.1 versions
Trial97 Feb 10, 2024
8eba326
Update launcher/modplatform/flame/FlameInstanceCreationTask.cpp
Trial97 Feb 10, 2024
72c4a52
Fixed curseforge neoforge export for 1.20.1
Trial97 Feb 11, 2024
c4cb36b
Merge pull request #1951 from guihkx/sync-flatpak
Scrumplex Dec 13, 2023
d8e34e6
Merge pull request #2130 from DioEgizio/updates
DioEgizio Feb 18, 2024
80f863f
Merge pull request #2135 from PrismLauncher/backport-2110-to-release-8.x
Trial97 Feb 18, 2024
438ccc4
Merge pull request #2136 from DioEgizio/updates-backport
DioEgizio Feb 18, 2024
c6441d2
fix: fix sparkle signing
DioEgizio Feb 22, 2024
4add246
Merge pull request #2151 from DioEgizio/updates-backport
getchoo Feb 22, 2024
0113456
Use empty list label code for welcome screen
crpz1 Feb 19, 2024
b7dc0b8
Merge pull request #2153 from PrismLauncher/backport-2141-to-release-8.x
Scrumplex Feb 22, 2024
e37cf12
Reduced temporary instance folder name
Trial97 Feb 22, 2024
f9ba4a7
Updated application manifest
Trial97 Feb 22, 2024
6c8ee3d
Re-randomise key until it does not collide
TheKodeToad Feb 24, 2024
82584e5
Delete staging on abort
TheKodeToad Feb 24, 2024
3b02b6b
Add error when staging folder could not be created
TheKodeToad Feb 24, 2024
69a10e4
Add upper-bound for randomisation
TheKodeToad Feb 24, 2024
c39ca88
Fix a mistake
TheKodeToad Feb 24, 2024
b7f079b
Fix build on Windows and formatting
TheKodeToad Feb 24, 2024
8ad7c37
Merge pull request #2184 from PrismLauncher/backport-2160-to-release-8.x
Scrumplex Mar 3, 2024
e349e24
Fix server side mods being marked as unsupported on client
TheKodeToad Mar 1, 2024
1fe7107
Allow multiline description
TheKodeToad Mar 1, 2024
ca1b68b
Merge pull request #2185 from PrismLauncher/backport-2178-to-release-8.x
TayouVR Mar 3, 2024
a8553e7
add line back to group separator
TayouVR Dec 7, 2023
8c5cc43
Merge pull request #2186 from PrismLauncher/backport-1923-to-release-8.x
Scrumplex Mar 3, 2024
a7bfd08
chore: bump to 8.2
Scrumplex Mar 3, 2024
284633f
Merge pull request #2188 from Scrumplex/bump-8.2
Scrumplex Mar 3, 2024
96b4933
Merge Prism Launcher 8.2
evan-goode Mar 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Checks:
- modernize-use-using
- readability-avoid-const-params-in-decls

SystemHeaders: false
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Create backport PRs
uses: korthout/[email protected].0
uses: korthout/[email protected].1
with:
# Config README: https://github.com/korthout/backport-action#backport-action
pull_description: |-
Expand Down
74 changes: 64 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,23 @@ on:
WINDOWS_CODESIGN_PASSWORD:
description: Password for signing Windows builds
required: false
CACHIX_AUTH_TOKEN:
description: Private token for authenticating against Cachix cache
APPLE_CODESIGN_CERT:
description: Certificate for signing macOS builds
required: false
APPLE_CODESIGN_PASSWORD:
description: Password for signing macOS builds
required: false
APPLE_CODESIGN_ID:
description: Certificate ID for signing macOS builds
required: false
APPLE_NOTARIZE_APPLE_ID:
description: Apple ID used for notarizing macOS builds
required: false
APPLE_NOTARIZE_TEAM_ID:
description: Team ID used for notarizing macOS builds
required: false
APPLE_NOTARIZE_PASSWORD:
description: Password used for notarizing macOS builds
required: false
GPG_PRIVATE_KEY:
description: Private key for AppImage signing
Expand Down Expand Up @@ -61,7 +76,7 @@ jobs:
qt_ver: 6
qt_host: windows
qt_arch: ''
qt_version: '6.6.0'
qt_version: '6.6.2'
qt_modules: 'qt5compat qtimageformats'
qt_tools: ''

Expand All @@ -73,7 +88,7 @@ jobs:
qt_ver: 6
qt_host: windows
qt_arch: 'win64_msvc2019_arm64'
qt_version: '6.6.0'
qt_version: '6.6.2'
qt_modules: 'qt5compat qtimageformats'
qt_tools: ''

Expand All @@ -83,7 +98,7 @@ jobs:
qt_ver: 6
qt_host: mac
qt_arch: ''
qt_version: '6.6.0'
qt_version: '6.6.2'
qt_modules: 'qt5compat qtimageformats'
qt_tools: ''

Expand Down Expand Up @@ -336,23 +351,62 @@ jobs:
# PACKAGE BUILDS
##

- name: Fetch codesign certificate (macOS)
if: runner.os == 'macOS'
run: |
echo '${{ secrets.APPLE_CODESIGN_CERT }}' | base64 --decode > codesign.p12
if [ -n '${{ secrets.APPLE_CODESIGN_ID }}' ]; then
security create-keychain -p '${{ secrets.APPLE_CODESIGN_PASSWORD }}' build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p '${{ secrets.APPLE_CODESIGN_PASSWORD }}' build.keychain
security import codesign.p12 -k build.keychain -P '${{ secrets.APPLE_CODESIGN_PASSWORD }}' -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k '${{ secrets.APPLE_CODESIGN_PASSWORD }}' build.keychain
else
echo ":warning: Using ad-hoc code signing for macOS, as certificate was not present." >> $GITHUB_STEP_SUMMARY
fi

- name: Package (macOS)
if: runner.os == 'macOS'
run: |
cmake --install ${{ env.BUILD_DIR }}

cd ${{ env.INSTALL_DIR }}
chmod +x "PollyMC.app/Contents/MacOS/pollymc"
sudo codesign --sign - --deep --force --entitlements "../program_info/App.entitlements" --options runtime "PollyMC.app/Contents/MacOS/pollymc"
tar -czf ../PollyMC.tar.gz *

if [ -n '${{ secrets.APPLE_CODESIGN_ID }}' ]; then
APPLE_CODESIGN_ID='${{ secrets.APPLE_CODESIGN_ID }}'
else
APPLE_CODESIGN_ID='-'
fi

sudo codesign --sign "$APPLE_CODESIGN_ID" --deep --force --entitlements "../program_info/App.entitlements" --options runtime "PollyMC.app/Contents/MacOS/pollymc"

- name: Notarize (macOS)
if: runner.os == 'macOS'
run: |
cd ${{ env.INSTALL_DIR }}

if [ -n '${{ secrets.APPLE_NOTARIZE_PASSWORD }}' ]; then
ditto -c -k --sequesterRsrc --keepParent "PollyMC.app" ../PollyMC.zip
xcrun notarytool submit ../PollyMC.zip \
--wait --progress \
--apple-id '${{ secrets.APPLE_NOTARIZE_APPLE_ID }}' \
--team-id '${{ secrets.APPLE_NOTARIZE_TEAM_ID }}' \
--password '${{ secrets.APPLE_NOTARIZE_PASSWORD }}'

xcrun stapler staple "PollyMC.app"
else
echo ":warning: Skipping notarization as credentials are not present." >> $GITHUB_STEP_SUMMARY
fi
ditto -c -k --sequesterRsrc --keepParent "PollyMC.app" ../PollyMC.zip

- name: Make Sparkle signature (macOS)
if: matrix.name == 'macOS'
run: |
if [ '${{ secrets.SPARKLE_ED25519_KEY }}' != '' ]; then
brew install openssl@3
echo '${{ secrets.SPARKLE_ED25519_KEY }}' > ed25519-priv.pem
signature=$(/usr/local/opt/openssl@3/bin/openssl pkeyutl -sign -rawin -in ${{ github.workspace }}/PollyMC.tar.gz -inkey ed25519-priv.pem | openssl base64 | tr -d \\n)
signature=$(/usr/local/opt/openssl@3/bin/openssl pkeyutl -sign -rawin -in ${{ github.workspace }}/PollyMC.zip -inkey ed25519-priv.pem | openssl base64 | tr -d \\n)
rm ed25519-priv.pem
cat >> $GITHUB_STEP_SUMMARY << EOF
### Artifact Information :information_source:
Expand Down Expand Up @@ -519,7 +573,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: PollyMC-${{ matrix.name }}-${{ env.VERSION }}-${{ inputs.build_type }}
path: PollyMC.tar.gz
path: PollyMC.zip

- name: Upload binary zip (Windows)
if: runner.os == 'Windows'
Expand Down Expand Up @@ -593,7 +647,7 @@ jobs:
flatpak:
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:kde-5.15-22.08
image: bilelmoussaoui/flatpak-github-actions:kde-5.15-23.08
options: --privileged
steps:
- name: Checkout
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/trigger_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
SPARKLE_ED25519_KEY: ${{ secrets.SPARKLE_ED25519_KEY }}
WINDOWS_CODESIGN_CERT: ${{ secrets.WINDOWS_CODESIGN_CERT }}
WINDOWS_CODESIGN_PASSWORD: ${{ secrets.WINDOWS_CODESIGN_PASSWORD }}
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
APPLE_CODESIGN_CERT: ${{ secrets.APPLE_CODESIGN_CERT }}
APPLE_CODESIGN_PASSWORD: ${{ secrets.APPLE_CODESIGN_PASSWORD }}
APPLE_CODESIGN_ID: ${{ secrets.APPLE_CODESIGN_ID }}
APPLE_NOTARIZE_APPLE_ID: ${{ secrets.APPLE_NOTARIZE_APPLE_ID }}
APPLE_NOTARIZE_TEAM_ID: ${{ secrets.APPLE_NOTARIZE_TEAM_ID }}
APPLE_NOTARIZE_PASSWORD: ${{ secrets.APPLE_NOTARIZE_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PRIVATE_KEY_ID: ${{ secrets.GPG_PRIVATE_KEY_ID }}
39 changes: 21 additions & 18 deletions .github/workflows/trigger_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@ jobs:
SPARKLE_ED25519_KEY: ${{ secrets.SPARKLE_ED25519_KEY }}
WINDOWS_CODESIGN_CERT: ${{ secrets.WINDOWS_CODESIGN_CERT }}
WINDOWS_CODESIGN_PASSWORD: ${{ secrets.WINDOWS_CODESIGN_PASSWORD }}
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
APPLE_CODESIGN_CERT: ${{ secrets.APPLE_CODESIGN_CERT }}
APPLE_CODESIGN_PASSWORD: ${{ secrets.APPLE_CODESIGN_PASSWORD }}
APPLE_CODESIGN_ID: ${{ secrets.APPLE_CODESIGN_ID }}
APPLE_NOTARIZE_APPLE_ID: ${{ secrets.APPLE_NOTARIZE_APPLE_ID }}
APPLE_NOTARIZE_TEAM_ID: ${{ secrets.APPLE_NOTARIZE_TEAM_ID }}
APPLE_NOTARIZE_PASSWORD: ${{ secrets.APPLE_NOTARIZE_PASSWORD }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PRIVATE_KEY_ID: ${{ secrets.GPG_PRIVATE_KEY_ID }}

Expand All @@ -41,14 +46,13 @@ jobs:
run: |
mv ${{ github.workspace }}/PollyMC-source PollyMC-${{ env.VERSION }}
mv PollyMC-Linux-Qt6-Portable*/PollyMC-portable.tar.gz PollyMC-Linux-Qt6-Portable-${{ env.VERSION }}.tar.gz
mv PollyMC-Linux-Qt6*/PollyMC.tar.gz PollyMC-Linux-Qt6-${{ env.VERSION }}.tar.gz
mv PollyMC-Linux-Qt6*/PollyMC.tar.gz PollyMC-Linux-Qt6-${{ env.VERSION }}.tar.gz
mv PollyMC-Linux-Qt5-Portable*/PollyMC-portable.tar.gz PollyMC-Linux-Qt5-Portable-${{ env.VERSION }}.tar.gz
mv PollyMC-Linux-Qt5*/PollyMC.tar.gz PollyMC-Linux-Qt5-${{ env.VERSION }}.tar.gz
mv PollyMC-*.AppImage/PollyMC-*.AppImage PollyMC-Linux-x86_64.AppImage
mv PollyMC-*.AppImage.zsync/PollyMC-*.AppImage.zsync PollyMC-Linux-x86_64.AppImage.zsync
mv PollyMC*.flatpak/PollyMC*.flatpak PollyMC-Linux-${{ env.VERSION }}-x86_64.flatpak
mv PollyMC-macOS-Legacy*/PollyMC.tar.gz PollyMC-macOS-Legacy-${{ env.VERSION }}.tar.gz
mv PollyMC-macOS*/PollyMC.tar.gz PollyMC-macOS-${{ env.VERSION }}.tar.gz
mv PollyMC-macOS-Legacy*/PollyMC.zip PollyMC-macOS-Legacy-${{ env.VERSION }}.zip
mv PollyMC-macOS*/PollyMC.zip PollyMC-macOS-${{ env.VERSION }}.zip

tar --exclude='.git' -czf PollyMC-${{ env.VERSION }}.tar.gz PollyMC-${{ env.VERSION }}

Expand Down Expand Up @@ -88,22 +92,21 @@ jobs:
draft: true
prerelease: false
files: |
PollyMC-Windows-MSVC-Setup-${{ env.VERSION }}.exe
PollyMC-Windows-MSVC-Portable-${{ env.VERSION }}.zip
PollyMC-Windows-MSVC-${{ env.VERSION }}.zip
PollyMC-Linux-x86_64.AppImage
PollyMC-Linux-x86_64.AppImage.zsync
PollyMC-Linux-${{ env.VERSION }}-x86_64.flatpak
PollyMC-macOS-${{ env.VERSION }}.tar.gz
PollyMC-macOS-Legacy-${{ env.VERSION }}.tar.gz
PollyMC-Linux-Qt5-${{ env.VERSION }}.tar.gz
PollyMC-Linux-Qt5-Portable-${{ env.VERSION }}.tar.gz
PollyMC-Linux-x86_64.AppImage
PollyMC-Linux-x86_64.AppImage.zsync
PollyMC-Linux-Qt6-${{ env.VERSION }}.tar.gz
PollyMC-Linux-Qt6-Portable-${{ env.VERSION }}.tar.gz
PollyMC-Windows-MSVC-arm64-Setup-${{ env.VERSION }}.exe
PollyMC-Windows-MSVC-arm64-Portable-${{ env.VERSION }}.zip
PollyMC-Windows-MSVC-arm64-${{ env.VERSION }}.zip
PollyMC-Windows-MinGW-w64-Setup-${{ env.VERSION }}.exe
PollyMC-Windows-MinGW-w64-Portable-${{ env.VERSION }}.zip
PollyMC-Windows-MinGW-w64-${{ env.VERSION }}.zip
PollyMC-Windows-MinGW-w64-Portable-${{ env.VERSION }}.zip
PollyMC-Windows-MinGW-w64-Setup-${{ env.VERSION }}.exe
PollyMC-Windows-MSVC-arm64-${{ env.VERSION }}.zip
PollyMC-Windows-MSVC-arm64-Portable-${{ env.VERSION }}.zip
PollyMC-Windows-MSVC-arm64-Setup-${{ env.VERSION }}.exe
PollyMC-Windows-MSVC-${{ env.VERSION }}.zip
PollyMC-Windows-MSVC-Portable-${{ env.VERSION }}.zip
PollyMC-Windows-MSVC-Setup-${{ env.VERSION }}.exe
PollyMC-macOS-${{ env.VERSION }}.zip
PollyMC-macOS-Legacy-${{ env.VERSION }}.zip
PollyMC-${{ env.VERSION }}.tar.gz
2 changes: 1 addition & 1 deletion .github/workflows/update-flake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@6a9a9e84a173d90b3ffb42c5ddaf9ea033fad011 # v23
- uses: cachix/install-nix-action@7ac1ec25491415c381d9b62f0657c7a028df52a7 # v24

- uses: DeterminateSystems/update-flake-lock@v20
with:
Expand Down
15 changes: 7 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ set(Launcher_HELP_URL "https://prismlauncher.org/wiki/help-pages/%1" CACHE STRIN

######## Set version numbers ########
set(Launcher_VERSION_MAJOR 8)
set(Launcher_VERSION_MINOR 0)
set(Launcher_VERSION_MINOR 2)

set(Launcher_VERSION_NAME "${Launcher_VERSION_MAJOR}.${Launcher_VERSION_MINOR}")
set(Launcher_VERSION_NAME4 "${Launcher_VERSION_MAJOR}.${Launcher_VERSION_MINOR}.0.0")
Expand Down Expand Up @@ -377,12 +377,12 @@ if(UNIX AND APPLE)
set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${Launcher_VERSION_NAME}")
set(MACOSX_BUNDLE_LONG_VERSION_STRING "${Launcher_VERSION_NAME}")
set(MACOSX_BUNDLE_ICON_FILE ${Launcher_Name}.icns)
set(MACOSX_BUNDLE_COPYRIGHT "© 2022-2023 ${Launcher_Copyright_Mac}")
set(MACOSX_BUNDLE_COPYRIGHT "${Launcher_Copyright_Mac}")
set(MACOSX_SPARKLE_UPDATE_PUBLIC_KEY "" CACHE STRING "Public key for Sparkle update feed")
set(MACOSX_SPARKLE_UPDATE_FEED_URL "" CACHE STRING "URL for Sparkle update feed")

set(MACOSX_SPARKLE_DOWNLOAD_URL "https://github.com/sparkle-project/Sparkle/releases/download/2.1.0/Sparkle-2.1.0.tar.xz" CACHE STRING "URL to Sparkle release archive")
set(MACOSX_SPARKLE_SHA256 "bf6ac1caa9f8d321d5784859c88da874f28412f37fb327bc21b7b14c5d61ef94" CACHE STRING "SHA256 checksum for Sparkle release archive")
set(MACOSX_SPARKLE_DOWNLOAD_URL "https://github.com/sparkle-project/Sparkle/releases/download/2.5.2/Sparkle-2.5.2.tar.xz" CACHE STRING "URL to Sparkle release archive")
set(MACOSX_SPARKLE_SHA256 "572dd67ae398a466f19f343a449e1890bac1ef74885b4739f68f979a8a89884b" CACHE STRING "SHA256 checksum for Sparkle release archive")
set(MACOSX_SPARKLE_DIR "${CMAKE_BINARY_DIR}/frameworks/Sparkle")

# directories to look for dependencies
Expand Down Expand Up @@ -504,11 +504,10 @@ else()
endif()
if(NOT cmark_FOUND)
message(STATUS "Using bundled cmark")
set(CMARK_STATIC ON CACHE BOOL "Build static libcmark library" FORCE)
set(CMARK_SHARED OFF CACHE BOOL "Build shared libcmark library" FORCE)
set(CMARK_TESTS OFF CACHE BOOL "Build cmark tests and enable testing" FORCE)
set(BUILD_TESTING 0)
set(BUILD_SHARED_LIBS 0)
add_subdirectory(libraries/cmark EXCLUDE_FROM_ALL) # Markdown parser
add_library(cmark::cmark ALIAS cmark_static)
add_library(cmark::cmark ALIAS cmark)
else()
message(STATUS "Using system cmark")
endif()
Expand Down
4 changes: 2 additions & 2 deletions COPYING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
## Prism Launcher

Prism Launcher - Minecraft Launcher
Copyright (C) 2022-2023 Prism Launcher Contributors
Copyright (C) 2022-2024 Prism Launcher Contributors

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -470,7 +470,7 @@
Copyright (C) 2007 Johann Ollivier Lapeyre <[email protected]>
Copyright (C) 2007 Kenneth Wimer <[email protected]>
Copyright (C) 2007 Riccardo Iaconelli <[email protected]>

and others

This library is free software; you can redistribute it and/or
Expand Down
8 changes: 8 additions & 0 deletions cmake/CompilerWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ function(
/w14906 # string literal cast to 'LPWSTR'
/w14928 # illegal copy-initialization; more than one user-defined conversion has been implicitly applied
/permissive- # standards conformance mode for MSVC compiler.

/we4062 # forbid omitting a possible value of an enum in a switch statement
)
endif()

Expand All @@ -93,6 +95,8 @@ function(
# in a lot of noise. This warning is only notifying us that clang is emulating the GCC behaviour
# instead of the exact standard wording so we can safely ignore it
-Wno-gnu-zero-variadic-macro-arguments

-Werror=switch # forbid omitting a possible value of an enum in a switch statement
)
endif()

Expand All @@ -104,6 +108,8 @@ function(
-Wduplicated-branches # warn if if / else branches have duplicated code
-Wlogical-op # warn about logical operations being used where bitwise were probably wanted
-Wuseless-cast # warn if you perform a cast to the same type

-Werror=switch # forbid omitting a possible value of an enum in a switch statement
)
endif()

Expand All @@ -128,6 +134,8 @@ function(
-Woverloaded-virtual
-Wuseless-cast
-Wextra-semi

-Werror=switch # forbid omitting a possible value of an enum in a switch statement
)

target_compile_options(
Expand Down
22 changes: 3 additions & 19 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading