goatcorp / FFXIVQuickLauncher

Custom launcher for FFXIV
https://goatcorp.github.io/
GNU General Public License v3.0
2.85k stars 333 forks source link

During build on flatpak, missing custom steamworks : "goaaats.Steamworks". #1153

Open Elegantwolf opened 2 years ago

Elegantwolf commented 2 years ago

Update disclaimer

What did you do?

I'm trying to build FFXIVQuickLauncher flatpak version on my own. Everything was fine until it said "/run/build/xivlauncher/src/XIVLauncher.Common.Windows/XIVLauncher.Common.Windows.csproj : error NU1101: Unable to find package goaaats.Steamworks. No packages exist with this id in source(s): /run/build/xivlauncher/nuget-sources [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]"

Full log below.

Emptying app dir 'build-dir'
Downloading sources
Fetching git repo https://github.com/goatcorp/FFXIVQuickLauncher.git, ref refs/heads/master
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
Starting build of dev.goats.xivlauncher
Cache hit for libsecret, skipping build
Cache hit for aria2, skipping build
Cache miss, checking out last cache hit
========================================================================
Building module xivlauncher in /home/elegantwolf/Downloads/XIVLauncher-flatpak/.flatpak-builder/build/xivlauncher-3
========================================================================
Updating files: 100% (389/389), done.
Already on 'master'
Running: install -d "${FLATPAK_DEST}/opt/XIVLauncher/"
Running: dotnet publish -r linux-x64 --sc --source ./nuget-sources -o "${FLATPAK_DEST}/opt/XIVLauncher/" src/XIVLauncher.Core/XIVLauncher.Core.csproj --configuration Release

Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.400
----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
MSBuild version 17.3.0+92e077650 for .NET
  Determining projects to restore...
/run/build/xivlauncher/src/XIVLauncher.Common/XIVLauncher.Common.csproj : error NU1103: Unable to find a stable package System.Security.Principal.Windows with version (>= 5.0.0) [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common/XIVLauncher.Common.csproj : error NU1103:   - Found 2 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.0-preview.5.21301.5 ] [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common/XIVLauncher.Common.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.linux-x64 with version (= 6.0.8) [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common/XIVLauncher.Common.csproj : error NU1102:   - Found 2 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ] [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common/XIVLauncher.Common.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.linux-x64 with version (= 6.0.8) [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common/XIVLauncher.Common.csproj : error NU1102:   - Found 2 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ] [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
  Restored /run/build/xivlauncher/src/XIVLauncher.VersionGenerator/XIVLauncher.VersionGenerator.csproj (in 32.27 sec).
  Failed to restore /run/build/xivlauncher/src/XIVLauncher.Common/XIVLauncher.Common.csproj (in 38.88 sec).
/run/build/xivlauncher/src/XIVLauncher.Common.Windows/XIVLauncher.Common.Windows.csproj : error NU1101: Unable to find package goaaats.Steamworks. No packages exist with this id in source(s): /run/build/xivlauncher/nuget-sources [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common.Windows/XIVLauncher.Common.Windows.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.linux-x64 with version (= 6.0.8) [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common.Windows/XIVLauncher.Common.Windows.csproj : error NU1102:   - Found 2 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ] [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common.Windows/XIVLauncher.Common.Windows.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.linux-x64 with version (= 6.0.8) [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common.Windows/XIVLauncher.Common.Windows.csproj : error NU1102:   - Found 2 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ] [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
  Failed to restore /run/build/xivlauncher/src/XIVLauncher.Common.Windows/XIVLauncher.Common.Windows.csproj (in 10.16 sec).
/run/build/xivlauncher/src/XIVLauncher.Common.Unix/XIVLauncher.Common.Unix.csproj : error NU1101: Unable to find package goaaats.Steamworks. No packages exist with this id in source(s): /run/build/xivlauncher/nuget-sources [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common.Unix/XIVLauncher.Common.Unix.csproj : error NU1103: Unable to find a stable package System.Security.Principal.Windows with version (>= 5.0.0) [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common.Unix/XIVLauncher.Common.Unix.csproj : error NU1103:   - Found 2 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.0-preview.5.21301.5 ] [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common.Unix/XIVLauncher.Common.Unix.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.linux-x64 with version (= 6.0.8) [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common.Unix/XIVLauncher.Common.Unix.csproj : error NU1102:   - Found 2 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ] [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common.Unix/XIVLauncher.Common.Unix.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.linux-x64 with version (= 6.0.8) [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Common.Unix/XIVLauncher.Common.Unix.csproj : error NU1102:   - Found 2 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ] [/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj]
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102: Unable to find package KeySharp with version (>= 1.0.5)
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102:   - Found 1 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 1.0.4 ]
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1101: Unable to find package goaaats.Steamworks. No packages exist with this id in source(s): /run/build/xivlauncher/nuget-sources
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.linux-x64 with version (= 6.0.8)
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102:   - Found 2 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ]
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.win-x64 with version (= 6.0.8)
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102:   - Found 1 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ]
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.osx-x64 with version (= 6.0.8)
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102:   - Found 1 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ]
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.linux-x64 with version (= 6.0.8)
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102:   - Found 2 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ]
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.win-x64 with version (= 6.0.8)
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102:   - Found 1 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ]
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.osx-x64 with version (= 6.0.8)
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102:   - Found 1 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ]
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Host.win-x64 with version (= 6.0.8)
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102:   - Found 1 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ]
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Host.osx-x64 with version (= 6.0.8)
/run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj : error NU1102:   - Found 1 version(s) in /run/build/xivlauncher/nuget-sources [ Nearest version: 6.0.4 ]
  Failed to restore /run/build/xivlauncher/src/XIVLauncher.Common.Unix/XIVLauncher.Common.Unix.csproj (in 2.77 sec).
  Failed to restore /run/build/xivlauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj (in 27.42 sec).
Error: module xivlauncher: Child process exited with code 1

Thanks.

Platform

Linux (Wine/Proton)

Wine/Proton runner version

No response

Relevant log output

No response

goaaats commented 2 years ago

This is most likely an issue with the generated nuget dependencies, you might have to regenerate them - please check the guide on our old repo: https://github.com/goatcorp/xlcore-flatpak

Feel free to reopen if that doesn't work.

Elegantwolf commented 2 years ago

This is most likely an issue with the generated nuget dependencies, you might have to regenerate them - please check the guide on our old repo: https://github.com/goatcorp/xlcore-flatpak

Feel free to reopen if that doesn't work.

Thanks for your reply. I have referred to that guide about nuget-dependencies.json and tried to regenerate dependencies. curl -LO https://github.com/flatpak/flatpak-builder-tools/blob/master/dotnet/flatpak-dotnet-generator.pywon't work, I download flatpak-dotnet-generator.py and run myself. There's no error, but I believe it failed to regenerate all dependencies. Full log below.

root@debian:/home/elegantwolf/Downloads/CN/XIVLauncher-flatpak/FFXIVQuickLauncher/src/XIVLauncher.Core# python3 flatpak-dotnet-generator.py nuget-dependencies.json XIVLauncher.Core.csproj

Note that the directory 

'/root/.local/share/flatpak/exports/share'

is not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

Welcome to .NET 6.0!
---------------------
SDK Version: 6.0.400

----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
  Determining projects to restore...
  Restored /home/elegantwolf/Downloads/CN/XIVLauncher-flatpak/FFXIVQuickLauncher/src/XIVLauncher.Common.Unix/XIVLauncher.Common.Unix.csproj (in 30.94 sec).
  Restored /home/elegantwolf/Downloads/CN/XIVLauncher-flatpak/FFXIVQuickLauncher/src/XIVLauncher.Common.Windows/XIVLauncher.Common.Windows.csproj (in 30.96 sec).
  Restored /home/elegantwolf/Downloads/CN/XIVLauncher-flatpak/FFXIVQuickLauncher/src/XIVLauncher.VersionGenerator/XIVLauncher.VersionGenerator.csproj (in 45.98 sec).
  Restored /home/elegantwolf/Downloads/CN/XIVLauncher-flatpak/FFXIVQuickLauncher/src/XIVLauncher.Common/XIVLauncher.Common.csproj (in 1.02 sec).
  Restored /home/elegantwolf/Downloads/CN/XIVLauncher-flatpak/FFXIVQuickLauncher/src/XIVLauncher.Core/XIVLauncher.Core.csproj (in 1.3 min).