initial proton code

This commit is contained in:
Nicole O'Connor 2025-06-22 22:40:46 -07:00
parent 7b7e71fdff
commit 09c70b0de4
3 changed files with 32 additions and 0 deletions

13
.woodpecker/release.yaml Normal file
View File

@ -0,0 +1,13 @@
when:
- event: tag
ref: refs/tags/v*
steps:
- name: Parse git metadata
image: build-runner
commands:
- git tag -n $CI_COMMIT_TAG --format "%(contents)" > ./.tag_message.txt
- name: Release
image: woodpeckerci/plugin-release
settings:
api_key:
from_secret: WOODPECKER_CI_TOKEN

View File

@ -9,5 +9,6 @@
namespace cellar {
namespace steam {
extern std::vector<std::string> find_steam_libraries();
extern std::map<std::string, std::string> find_steam_protons();
}
}

View File

@ -1,9 +1,12 @@
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <regex>
#include <sstream>
#include <string>
#include <vector>
#include "nlohmann/json.hpp"
#include "vdf_parser.hpp"
#include "bottles.hpp"
@ -36,4 +39,19 @@ std::vector<std::string> cellar::steam::find_steam_libraries() {
}
return result;
}
/**
* @brief Gets available versions of Proton from Steam.
*
* @return std::vector<std::string> Proton versions.
*/
std::map<std::string, std::string> cellar::steam::find_steam_protons() {
std::map<std::string, std::string> result;
for (std::string str_library_path : find_steam_libraries()) {
std::filesystem::path pth_library(str_library_path);
for ()
}
}