Oraset B-5: Clean repository with only C implementation
Build and Package Oraset / build (macos-latest) (push) Waiting to run
Build and Package Oraset / build (ubuntu-latest) (push) Waiting to run
Build and Package Oraset / build (windows-latest) (push) Waiting to run
Build and Package Oraset / release (push) Blocked by required conditions
Build and Package Oraset / build (macos-latest) (push) Waiting to run
Build and Package Oraset / build (ubuntu-latest) (push) Waiting to run
Build and Package Oraset / build (windows-latest) (push) Waiting to run
Build and Package Oraset / release (push) Blocked by required conditions
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
# Oraset Package (.orp)
|
||||
# 包名:hello-world
|
||||
# 版本:1.0.0
|
||||
# 描述:一个简单的 Hello World 示例包,包含 Lua 代码
|
||||
|
||||
version: 1.0.0
|
||||
name: hello-world
|
||||
description: A simple Hello World example package with Lua code
|
||||
author: Oraset Team
|
||||
license: MIT
|
||||
|
||||
# Lua 代码部分
|
||||
lua:
|
||||
-- 这是一个 Lua 脚本示例
|
||||
print("Hello from Lua!")
|
||||
print("这个包已经成功安装")
|
||||
|
||||
-- 定义一个简单的函数
|
||||
function greet(name)
|
||||
return "Hello, " .. name .. "!"
|
||||
end
|
||||
|
||||
-- 调用函数
|
||||
print(greet("Oraset"))
|
||||
|
||||
-- 数学计算
|
||||
print("计算结果: 2 + 3 = " .. (2 + 3))
|
||||
|
||||
-- 循环示例
|
||||
print("数字 1 到 5:")
|
||||
for i = 1, 5 do
|
||||
print(" " .. i)
|
||||
end
|
||||
|
||||
print("Lua 代码执行完成!")
|
||||
Reference in New Issue
Block a user