使用 xy.

This commit is contained in:
Aoran Zeng
2025-08-27 11:58:43 +08:00
parent 28d913c58b
commit 55865d6a7b
11 changed files with 41 additions and 47 deletions

View File

@@ -55,7 +55,7 @@ pl_dart_flutter_setsrc (char *option)
char *w = NULL;
char *cmd = NULL;
if (xy_on_windows)
if (xy.on_windows)
{
cmd = xy_strcat (3, "setx FLUTTER_STORAGE_BASE_URL \"", source.url, "\"");
chsrc_run (cmd, RunOpt_No_Last_New_Line);

View File

@@ -51,7 +51,7 @@ pl_dart_setsrc (char *option)
char *w = NULL;
char *cmd = NULL;
if (xy_on_windows)
if (xy.on_windows)
{
cmd = xy_strcat (3, "setx PUB_HOSTED_URL \"", source.url, "\"");
chsrc_run (cmd, RunOpt_No_Last_New_Line);

View File

@@ -44,7 +44,7 @@ pl_haskell_setsrc (char *option)
char *content = xy_str_gsub (RAWSTR_pl_haskell_cabal_config, "@url@", source.url);
char *config = NULL;
if (xy_on_windows)
if (xy.on_windows)
{
config = xy_normalize_path ("~/AppData/Roaming/cabal/config");
}

View File

@@ -49,7 +49,7 @@ pl_python_find_uv_config (bool mkdir)
}
else
{
if (xy_on_windows)
if (xy.on_windows)
{
/* config path on Windows */
char *appdata = getenv ("APPDATA");

View File

@@ -46,7 +46,7 @@ pl_r_getsrc (char *option)
* options()$repos
* options()$BioC_mirror
*/
if (xy_on_windows)
if (xy.on_windows)
{
chsrc_view_file (PL_R_Config_Windows);
}
@@ -74,7 +74,7 @@ pl_r_setsrc (char *option)
// 或者我们调用 r.exe --slave -e 上面的内容
char *config = xy_on_windows ? PL_R_Config_Windows : PL_R_Config_POSIX;
char *config = xy.on_windows ? PL_R_Config_Windows : PL_R_Config_POSIX;
chsrc_append_to_file (w, config);