Skip to content

Commit

Permalink
Merge branch 'main' into compatibility-rework-2
Browse files Browse the repository at this point in the history
This is needed for git to automerge
  • Loading branch information
rankynbass committed Nov 17, 2023
2 parents 8de0fee + 607a4e5 commit d4df579
Show file tree
Hide file tree
Showing 7 changed files with 57 additions and 9 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/generate_flatpak_nuget_deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Nuget Dependencies"

on:
workflow_dispatch:

jobs:
Generate:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0

- name: Setup Python3
uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Setup Flatpak
run: |
sudo apt update -y
sudo apt install flatpak -y
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user org.freedesktop.Sdk.Extension.dotnet6/x86_64/22.08 -y # Update this when needed.
flatpak install --user org.freedesktop.Sdk/x86_64/22.08 -y # As well as this, if dependency generation is failing.
- name: Generate nuget-dependencies.json
working-directory: ./src/XIVLauncher.Core/
run: |
curl -LO https://raw.githubusercontent.com/flatpak/flatpak-builder-tools/master/dotnet/flatpak-dotnet-generator.py
python3 flatpak-dotnet-generator.py nuget-dependencies.json XIVLauncher.Core.csproj
- name: Upload nuget-dependencies.json
uses: actions/upload-artifact@v3
with:
name: nuget-dependencies
path: |
./src/XIVLauncher.Core/nuget-dependencies.json
10 changes: 8 additions & 2 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ jobs:
# Clone the repository we want to make the PR to.
gh repo fork ${{ env.BASE_REPO }} --clone=true --remote=true /tmp/xlcore-flatpak
# Create a new branch for the PR.
# Sync the main branch & create a new branch for the PR
git -C /tmp/xlcore-flatpak fetch upstream
git -C /tmp/xlcore-flatpak reset --hard && git -C /tmp/xlcore-flatpak clean -fdx
git -C /tmp/xlcore-flatpak pull upstream master
# Delete (if exists) and create the branch we want to make the PR from.
git -C /tmp/xlcore-flatpak branch -D ${{ env.HEAD_BRANCH }} || true
git -C /tmp/xlcore-flatpak checkout -b ${{ env.HEAD_BRANCH }}
# Copy the files we need to the forked repository.
Expand All @@ -113,7 +119,7 @@ jobs:
# Push the changes to the fork.
git remote -v
git push --set-upstream origin ${{ env.HEAD_BRANCH }}
git push --set-upstream origin ${{ env.HEAD_BRANCH }} --force
# Make a PR from the fork to the upstream repository.
gh pr create --repo ${{ env.BASE_REPO }} --title "Update to ${{ github.ref_name }}" --body "This PR was automatically generated by GitHub Actions."
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ XIVLauncher Core has community packages for various Linux distributions. Please
| [Copr (Fedora+openSuse+EL9)](https://copr.fedorainfracloud.org/coprs/rankyn/xivlauncher/) | ![COPR version](https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2Frankynbass%2FXIVLauncher4rpm%2Fmain%2Fbadge.json)|
| [GURU (Gentoo)](https://gitweb.gentoo.org/repo/proj/guru.git/tree/games-util/xivlauncher) | ![GURU version](https://repology.org/badge/version-for-repo/gentoo_ovl_guru/xivlauncher.svg?header=guru) |
| [MPR (Debian+Ubuntu)](https://mpr.makedeb.org/packages/xivlauncher) | ![MPR package](https://repology.org/badge/version-for-repo/mpr/xivlauncher.svg?header=MPR) |
| [nixpkgs stable](https://search.nixos.org/packages?channel=22.11&from=0&size=50&sort=relevance&type=packages&query=xivlauncher) | ![nixpkgs stable version](https://repology.org/badge/version-for-repo/nix_stable_22_11/xivlauncher.svg?header=nixpkgs%2022.11) |
| [MPR (git) (Debian+Ubuntu)](https://mpr.makedeb.org/packages/xivlauncher-git) | ![MPR package](https://repology.org/badge/version-for-repo/mpr/xivlauncher.svg?header=MPR) |
| [nixpkgs stable](https://search.nixos.org/packages?channel=23.05&from=0&size=50&sort=relevance&type=packages&query=xivlauncher) | ![nixpkgs stable version](https://repology.org/badge/version-for-repo/nix_stable_23_05/xivlauncher.svg?header=nixpkgs%2023.05) |
| [nixpkgs unstable](https://search.nixos.org/packages?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=xivlauncher) | ![nixpkgs unstable version](https://repology.org/badge/version-for-repo/nix_unstable/xivlauncher.svg?header=nixpkgs%20unstable) |
| [PPA (Ubuntu)](https://launchpad.net/~linneris/+archive/ubuntu/xivlauncher-core-stable) | ![PPA version](https://img.shields.io/static/v1?label=PPA&message=1.0.3&color=brightgreen) |
| [PPA (Ubuntu)](https://launchpad.net/~linneris/+archive/ubuntu/xivlauncher-core-stable) | ![PPA version](https://img.shields.io/static/v1?label=PPA&message=1.0.5&color=brightgreen) |
2 changes: 1 addition & 1 deletion lib/FFXIVQuickLauncher
Submodule FFXIVQuickLauncher updated 61 files
+147 −0 src/.editorconfig
+4 −4 src/XIVLauncher.Common.Unix/Compatibility/GameFixes/Implementations/MacVideoFix.cs
+25 −46 src/XIVLauncher.Common/Dalamud/AssetManager.cs
+5 −12 src/XIVLauncher.Common/Dalamud/DalamudUpdater.cs
+46 −4 src/XIVLauncher.Common/Game/Headlines.cs
+8 −11 src/XIVLauncher.Common/Game/Launcher.cs
+6 −0 src/XIVLauncher.Common/Game/Patch/PatchInstaller.cs
+4 −4 src/XIVLauncher.Common/Patching/IndexedZiPatch/IndexedZiPatchIndex.cs
+2 −3 src/XIVLauncher.Common/Patching/IndexedZiPatch/IndexedZiPatchIndexLocalInstaller.cs
+4 −0 src/XIVLauncher.Common/Patching/IndexedZiPatch/IndexedZiPatchIndexRemoteInstaller.cs
+1 −3 src/XIVLauncher.Common/Patching/Util/FullDeflateStreamReader.cs
+3 −5 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/AddDirectoryChunk.cs
+3 −5 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/ApplyFreeSpaceChunk.cs
+3 −5 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/ApplyOptionChunk.cs
+3 −5 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/DeleteDirectoryChunk.cs
+3 −4 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/EndOfFileChunk.cs
+3 −3 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/FileHeaderChunk.cs
+7 −7 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/SqpkChunk.cs
+9 −12 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/SqpkCommand/SqpkAddData.cs
+6 −9 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/SqpkCommand/SqpkDeleteData.cs
+6 −9 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/SqpkCommand/SqpkExpandData.cs
+5 −8 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/SqpkCommand/SqpkFile.cs
+2 −5 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/SqpkCommand/SqpkHeader.cs
+2 −5 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/SqpkCommand/SqpkIndex.cs
+3 −5 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/SqpkCommand/SqpkPatchInfo.cs
+3 −4 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/SqpkCommand/SqpkTargetInfo.cs
+3 −4 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/XXXXChunk.cs
+9 −8 src/XIVLauncher.Common/Patching/ZiPatch/Chunk/ZiPatchChunk.cs
+30 −0 src/XIVLauncher.Common/Patching/ZiPatch/Util/AdvanceOnDispose.cs
+8 −10 src/XIVLauncher.Common/Patching/ZiPatch/Util/SqexFileStream.cs
+1 −1 src/XIVLauncher.Common/Patching/ZiPatch/Util/SqpackDatFile.cs
+23 −3 src/XIVLauncher.Common/Util/PlatformHelpers.cs
+1 −1 src/XIVLauncher.PatchInstaller/XIVLauncher.PatchInstaller.csproj
+4 −2 src/XIVLauncher/App.xaml
+0 −1 src/XIVLauncher/App.xaml.cs
+2 −6 src/XIVLauncher/Resources/CHANGELOG.txt
+5 −1 src/XIVLauncher/Resources/Loc/XIVLauncher_Localizable.json
+5 −1 src/XIVLauncher/Resources/Loc/xl/xl_de.json
+6 −2 src/XIVLauncher/Resources/Loc/xl/xl_es.json
+6 −2 src/XIVLauncher/Resources/Loc/xl/xl_fr.json
+5 −1 src/XIVLauncher/Resources/Loc/xl/xl_it.json
+6 −2 src/XIVLauncher/Resources/Loc/xl/xl_ja.json
+5 −1 src/XIVLauncher/Resources/Loc/xl/xl_ko.json
+6 −2 src/XIVLauncher/Resources/Loc/xl/xl_nl.json
+11 −7 src/XIVLauncher/Resources/Loc/xl/xl_no.json
+5 −1 src/XIVLauncher/Resources/Loc/xl/xl_pt.json
+5 −1 src/XIVLauncher/Resources/Loc/xl/xl_ru.json
+5 −1 src/XIVLauncher/Resources/Loc/xl/xl_si.json
+5 −1 src/XIVLauncher/Resources/Loc/xl/xl_sv.json
+5 −1 src/XIVLauncher/Resources/Loc/xl/xl_tw.json
+5 −1 src/XIVLauncher/Resources/Loc/xl/xl_ur.json
+6 −2 src/XIVLauncher/Resources/Loc/xl/xl_zh.json
+10 −0 src/XIVLauncher/Updates.cs
+1 −2 src/XIVLauncher/Windows/AdvancedSettingsWindow.xaml.cs
+63 −3 src/XIVLauncher/Windows/MainWindow.xaml
+15 −24 src/XIVLauncher/Windows/MainWindow.xaml.cs
+0 −1 src/XIVLauncher/Windows/PatchDownloadDialog.xaml.cs
+0 −1 src/XIVLauncher/Windows/SettingsControl.xaml.cs
+68 −4 src/XIVLauncher/Windows/ViewModel/MainWindowViewModel.cs
+2 −2 src/XIVLauncher/XIVLauncher.csproj
+9 −0 src/XIVLauncher/Xaml/Components/MaterialDesignOverrides.xaml
2 changes: 1 addition & 1 deletion src/XIVLauncher.Core/Components/MainPage/LoginFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public override void Draw()

ImGui.Separator();

if (ImGui.MenuItem("Launch without 3rd-party plugins"))
if (ImGui.MenuItem("Launch without custom repo plugins"))
{
this.OnLogin?.Invoke(LoginAction.GameNoThirdparty);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ public SettingsTabWine()
CheckVisibility = () => RuntimeInformation.IsOSPlatform(OSPlatform.Linux),
CheckValidity = b =>
{
if (b == true && (!File.Exists("/usr/lib/libgamemodeauto.so.0") && !File.Exists("/app/lib/libgamemodeauto.so.0")))
var handle = IntPtr.Zero;
if (b == true && !NativeLibrary.TryLoad("libgamemodeauto.so.0", out handle))
return "GameMode was not detected on your system.";
NativeLibrary.Free(handle);
return null;
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/XIVLauncher.Core/XIVLauncher.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<LangVersion>latest</LangVersion>
<ApplicationIcon>Resources\dalamud_icon.ico</ApplicationIcon>

<Version>1.0.4.0</Version>
<Version>1.0.6.0</Version>
<FileVersion>$(Version)</FileVersion>
<AssemblyVersion>$(Version)</AssemblyVersion>

Expand Down

0 comments on commit d4df579

Please sign in to comment.