generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: LiteLoaderQQNT.json需要更新, 新版qqnt的目录结构有变动 #4
Labels
bug
Something isn't working
Comments
注入位置也有了变化, 不再是注入到index.js里 |
"post_install": [
"if (!(Test-Path \"$persist_dir\")) { New-Item -Path $persist_dir -Type Directory | Out-Null}",
"$currentVersion = (parse_json \"$(appdir qq-nt $global)\\current\\Files\\versions\\config.json\").curVersion",
"$appLauncherDir = \"$(appdir qq-nt $global)\\current\\Files\\versions\\$currentVersion\\resources\\app\\app_launcher\"",
"$packageJsonPath = \"$(appdir qq-nt $global)\\current\\Files\\versions\\$currentVersion\\resources\\app\\package.json\"",
"if (Test-Path \"$packageJsonPath\") {",
" $jsFileName = \"liteLoaderQQNT.js\"; ",
" $envfilePath = \"$appLauncherDir\\$jsFileName\"",
" New-Item -Path $envfilePath -ItemType File -Force | Out-Null",
" Set-Content -Path $envfilePath -Value \"require(String.raw``$dir``);\"",
" $packageJson = Get-Content \"$packageJsonPath\" -Raw | ConvertFrom-Json;",
" $packageJson.main = \"./app_launcher/$jsFileName\";",
" $packageJson | ConvertTo-Json | Set-Content \"$packageJsonPath\";",
"} else {",
" info '文件 $packageJsonPath 不存在,无法继续操作'",
"}"
], 写的比较丑陋, scoop实在不知道怎么调试, 就不提pr了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Package Name
LiteLoaderQQNT
Expected/Current Behaviour
注入目录地址有变化
新版,则路径为 QQNT\versions\版本号\resources\app
旧版,则路径为 QQNT\resources\app
Steps to Reproduce
Possible Solution
需要修改post_install和post_uninstall
Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
No response
The text was updated successfully, but these errors were encountered: