version bump, update for modern boost, default cellar bottle path baked in

This commit is contained in:
Nicole O'Connor 2025-01-18 23:09:28 -08:00
parent 81732eab03
commit 1f9a78956b
4 changed files with 8 additions and 10 deletions

3
cogrc
View File

@ -1,5 +1,6 @@
[version]
release_version=0.4
release_version=0.5
[defaults]
wine-path=wine
cellar-bottle-path=~/.local/share/cellar/bottles

View File

@ -3,8 +3,7 @@
#include <string>
#include <vector>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>
#include "bottles.hpp"
#include "cellar.hpp"
@ -20,9 +19,9 @@ void cellar::bottles::switch_active_bottle(int argc, vector<string> argv) {
return;
}
string homepath = getenv("HOME"); // /home/nick
string bottlepath = homepath + "/.wine"; // /home/nick/.wine
string targetpath = homepath + "/.local/share/cellar/bottles/" + argv[1]; // /home/nick/.wine.example
string homepath = getenv("HOME");
string bottlepath = homepath + "/.wine";
string targetpath = homepath + "/.local/share/cellar/bottles/" + argv[1];
file_status targetstatus = symlink_status(targetpath);
if (!exists(targetstatus)) {

View File

@ -5,8 +5,7 @@
#include <sstream>
#include <vector>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>
#include "nlohmann/json.hpp"
#include "bottles.hpp"

View File

@ -2,8 +2,7 @@
#include <string>
#include <vector>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem.hpp>
#include "cellar.hpp"
#include "fs.hpp"