Skip to content

Commit

Permalink
docs: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
limitcool committed Jan 25, 2024
1 parent 7965301 commit 3cbad17
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: build

on:
release:
types: [created, published] # 表示在创建新的 Release 时触发
types: [created] # 表示在创建新的 Release 时触发

jobs:
build-go-binary:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
palworld-admin
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

PalWorld-Admin 是一个用于管理 PalWorld 游戏配置文件和进行存档备份的可视化工具。

### QQ群: 699024161

## 功能特性

- **配置文件管理:** 可以轻松查看和编辑 PalWorld 游戏的配置文件。
Expand Down
13 changes: 13 additions & 0 deletions scripts/palworld-admin.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Palworld Admin Service
After=network.target

[Service]
ExecStart=/root/palworld-admin
WorkingDirectory=/root
User=root
Group=root
Restart=always

[Install]
WantedBy=multi-user.target
26 changes: 26 additions & 0 deletions scripts/setup_palworld.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# Make the palworld-admin executable
chmod u+x /root/palworld-admin

# Create the systemd service file
echo "[Unit]
Description=Palworld Admin Service
After=network.target
[Service]
ExecStart=/root/palworld-admin
WorkingDirectory=/root
User=root
Group=root
Restart=always
[Install]
WantedBy=multi-user.target" | sudo tee /etc/systemd/system/palworld-admin.service

# Start and enable the service
sudo systemctl start palworld-admin
sudo systemctl enable palworld-admin

# Check the service status
sudo systemctl status palworld-admin

0 comments on commit 3cbad17

Please sign in to comment.