initial proton code
This commit is contained in:
parent
7b7e71fdff
commit
09c70b0de4
13
.woodpecker/release.yaml
Normal file
13
.woodpecker/release.yaml
Normal 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
|
@ -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();
|
||||
}
|
||||
}
|
@ -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 ()
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user