Skip to content

Commit

Permalink
v2.0.2 上传data文件夹,优化打包
Browse files Browse the repository at this point in the history
  • Loading branch information
wetor committed Oct 17, 2023
1 parent 179a624 commit 9638725
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,13 @@ jobs:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o LuckSystem_linux .
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o LuckSystem_mac .
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o LuckSystem.exe .
- name: Create zip files
run: |
zip -r LuckSystem_linux_x86_64.zip LuckSystem_linux Plugin.md Usage.md README.md data
zip -r LuckSystem_mac_x86_64.zip LuckSystem_mac Plugin.md Usage.md README.md data
zip -r LuckSystem_windows_x86_64.zip LuckSystem.exe Plugin.md Usage.md README.md data
- uses: ncipollo/release-action@v1
with:
artifacts: "LuckSystem_linux,LuckSystem_mac,LuckSystem.exe"
artifacts: "LuckSystem_linux_x86_64.zip,LuckSystem_mac_x86_64.zip,LuckSystem_windows_x86_64.zip"
bodyFile: ""
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
.DS_Store
.vscode/
.idea/
data/*/*
!data/*/OPCODE.txt
log/
lucksystem
main
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "LuckSystem",
Version: "1.0.0",
Version: "2.0.2",
Short: "LucaSystem引擎工具集",
Long: `LucaSystem引擎工具集
https://github.com/wetor/LuckSystem
Expand Down
38 changes: 38 additions & 0 deletions data/base/loopers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import core

def IFN():
# IFN (expr_str, {jump})
core.read_len_str(core.expr)
core.read_jump()
core.end()

def IFY():
# IFY (expr_str, {jump})
core.read_len_str(core.expr)
core.read_jump()
core.end()

def FARCALL():
# FARCALL (index, file_str, {jump})
core.read_uint16(True)
file = core.read_len_str(core.expr)
core.read_jump(file)
core.end()

def GOTO():
# GOTO ({jump})
core.read_jump()
core.end()

def GOSUB():
# GOTO (int, {jump})
core.read_uint16(True)
core.read_jump()
core.end()

def JUMP():
# JUMP (file_str, {jump})
file = core.read_len_str(core.expr)
if core.can_read():
core.read_jump(file)
core.end()
38 changes: 38 additions & 0 deletions data/base/sp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import core

def IFN():
# IFN (expr_str, {jump})
core.read_str(core.expr)
core.read_jump()
core.end()

def IFY():
# IFY (expr_str, {jump})
core.read_str(core.expr)
core.read_jump()
core.end()

def FARCALL():
# FARCALL (index, file_str, {jump})
core.read_uint16(True)
file = core.read_str(core.expr)
core.read_jump(file)
core.end()

def GOTO():
# GOTO ({jump})
core.read_jump()
core.end()

def GOSUB():
# GOTO (int, {jump})
core.read_uint16(True)
core.read_jump()
core.end()

def JUMP():
# JUMP (file_str, {jump})
file = core.read_str(core.expr)
if core.can_read():
core.read_jump(file)
core.end()

0 comments on commit 9638725

Please sign in to comment.