From 5bf8abf22f961a42ebd48564aeb75a9af6c50a04 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Tue, 2 Sep 2025 08:57:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(example-pkg):=20=E6=9B=B4=E6=96=B0=E5=8C=85?= =?UTF-8?q?=E5=90=8D=E5=92=8C=E7=89=88=E6=9C=AC=E5=8F=B7=E5=B9=B6=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E7=A4=BA=E4=BE=8B=E7=A8=8B=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除示例程序中的退出提示以简化用户体验 更新作者信息和包名以保持一致性 --- .../lua/rom/packages/example-pkg/1.0.0/package.json | 6 +++--- .../lua/rom/packages/example-pkg/1.0.0/programs/example.lua | 6 +----- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/data/computercraft/lua/rom/packages/example-pkg/1.0.0/package.json b/data/computercraft/lua/rom/packages/example-pkg/1.0.0/package.json index ccfb38b..09b109d 100644 --- a/data/computercraft/lua/rom/packages/example-pkg/1.0.0/package.json +++ b/data/computercraft/lua/rom/packages/example-pkg/1.0.0/package.json @@ -1,8 +1,8 @@ { - "name": "example-pkg", - "version": "1.0.0", + "name": "example", + "version": "1.0.1", "description": "An example package for LeonOS", - "author": "LeonOS Team", + "author": "LeonMMcoset", "license": "MIT", "dependencies": {}, "files": [ diff --git a/data/computercraft/lua/rom/packages/example-pkg/1.0.0/programs/example.lua b/data/computercraft/lua/rom/packages/example-pkg/1.0.0/programs/example.lua index 0594b5d..39f26d8 100644 --- a/data/computercraft/lua/rom/packages/example-pkg/1.0.0/programs/example.lua +++ b/data/computercraft/lua/rom/packages/example-pkg/1.0.0/programs/example.lua @@ -22,8 +22,4 @@ print("\nThis is an example package that demonstrates the features of LeonOS pac print("\nUsage:") print(" pkg install example-pkg - Install this package") print(" pkg remove example-pkg - Uninstall this package") -print(" pkg list - List installed packages") -print("\nPress any key to exit...") -os.pullEvent("key") -term.clear() -term.setCursorPos(1, 1) \ No newline at end of file +print(" pkg list - List installed packages") \ No newline at end of file