Compare commits
2 Commits
19a0e40977
...
trunk
Author | SHA1 | Date | |
---|---|---|---|
09c70b0de4 | |||
7b7e71fdff |
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 cellar {
|
||||||
namespace steam {
|
namespace steam {
|
||||||
extern std::vector<std::string> find_steam_libraries();
|
extern std::vector<std::string> find_steam_libraries();
|
||||||
|
extern std::map<std::string, std::string> find_steam_protons();
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -166,7 +166,7 @@ string cellar::bottles::resolve_bottle(string bottlechoice) {
|
|||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
string homepath = getenv("HOME");
|
string homepath = getenv("HOME");
|
||||||
string fullbottlepath = homepath + "/.local/share/cellar/bottles" + bottlechoice;
|
string fullbottlepath = homepath + "/.local/share/cellar/bottles/" + bottlechoice;
|
||||||
result = fullbottlepath;
|
result = fullbottlepath;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@@ -1,9 +1,12 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
#include <filesystem>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
#include <regex>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "nlohmann/json.hpp"
|
||||||
#include "vdf_parser.hpp"
|
#include "vdf_parser.hpp"
|
||||||
|
|
||||||
#include "bottles.hpp"
|
#include "bottles.hpp"
|
||||||
@@ -37,3 +40,18 @@ std::vector<std::string> cellar::steam::find_steam_libraries() {
|
|||||||
|
|
||||||
return result;
|
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 ()
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user