build batch update
This commit is contained in:
parent
bfdf51d313
commit
10fba65079
2 changed files with 7 additions and 2 deletions
|
|
@ -1,4 +1,9 @@
|
|||
PATH=%PATH_WIN%
|
||||
@echo off
|
||||
set "PathUser="
|
||||
for /F "skip=2 tokens=1,2*" %%G in ('%SystemRoot%\System32\reg.exe query "HKCU\Environment" /v "Path" 2^>nul') do if /I "%%G" == "Path" (
|
||||
if /I "%%H" == "REG_EXPAND_SZ" (set "PathExpand=1" & set "PathUser=%%I") else if /I "%%H" == "REG_SZ" set "PathUser=%%I"
|
||||
)
|
||||
PATH=%PathUser%
|
||||
|
||||
SET BuildData > build_data.conf
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import 'package:dart_framework/utils/system_util.dart';
|
|||
|
||||
class RegistPath {
|
||||
static RegistPath? _instance;
|
||||
// ignore: library_private_types_in_public_api
|
||||
// ignore: library_private_types_in_public_api, non_constant_identifier_names
|
||||
static RegistPath? get OS {
|
||||
if (_instance == null) {
|
||||
if (Platform.isMacOS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue