Skip to content

Commit 4a88a0a

Browse files
author
User
committed
fix: CI sync pterm hash from registry + fix Linux headless mod
1 parent c686b62 commit 4a88a0a

3 files changed

Lines changed: 22 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ jobs:
8080
rustc --target wasm32-unknown-unknown --crate-type cdylib plug.app/rt/src_plugins/pTerm/pTerm.rs -o plugins/pTerm.wasm -C opt-level=z -C lto=true -C link-arg=--allow-undefined
8181
cp plug.app/rt/src_plugins/plugin.toml plugins/plugin.toml
8282
83+
- name: Sync pTerm hash from registry
84+
run: |
85+
REGISTRY_SHA=$(curl -sL "https://raw.githubusercontent.com/PlugFrameWork/plug/trunk/plugins/pTerm/pTerm" | sha256sum | cut -d' ' -f1)
86+
echo "Registry SHA256: $REGISTRY_SHA"
87+
echo "$REGISTRY_SHA" > plug.app/rt/pterm_hash.txt
88+
git config user.name "github-actions"
89+
git config user.email "actions@github.com"
90+
git add plug.app/rt/pterm_hash.txt
91+
git commit -m "chore: sync pterm hash from registry" || true
92+
git push origin HEAD:${{ github.ref }} || true
93+
8394
- name: Run CMake Configuration
8495
shell: bash
8596
run: |
@@ -129,6 +140,17 @@ jobs:
129140
rustc --target wasm32-unknown-unknown --crate-type cdylib plug.app/rt/src_plugins/pTerm/pTerm.rs -o plugins/pTerm.wasm -C opt-level=z -C lto=true -C link-arg=--allow-undefined
130141
cp plug.app/rt/src_plugins/plugin.toml plugins/plugin.toml
131142
143+
- name: Sync pTerm hash from registry
144+
run: |
145+
REGISTRY_SHA=$(curl -sL "https://raw.githubusercontent.com/PlugFrameWork/plug/trunk/plugins/pTerm/pTerm" | sha256sum | cut -d' ' -f1)
146+
echo "Registry SHA256: $REGISTRY_SHA"
147+
echo "$REGISTRY_SHA" > plug.app/rt/pterm_hash.txt
148+
git config user.name "github-actions"
149+
git config user.email "actions@github.com"
150+
git add plug.app/rt/pterm_hash.txt
151+
git commit -m "chore: sync pterm hash from registry" || true
152+
git push origin HEAD:${{ github.ref }} || true
153+
132154
- name: Run CMake Configuration
133155
run: |
134156
cmake -G Ninja -S plug.cross/linux -B plug.cross/linux/build "-DRUST_LIB_PATH=${{ github.workspace }}/plug.app/rt/target/x86_64-unknown-linux-gnu/release/libtm_main.a" -DCMAKE_BUILD_TYPE=Release -DPLUG_ENABLE_HEADLESS_MODE=ON

plug.app/rt/src_plugins/plugin.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,3 @@ version = "1.0.1"
44
author = "plug"
55
api_version = "0.1.2a"
66
permissions = ["host_exec", "host_add_tab", "host_set_tab_owner", "host_get_tab_label"]
7-
allowed_commands = [
8-
{ path = "cmd.exe", args_pattern = "^.*$" },
9-
{ path = "powershell.exe", args_pattern = "^.*$" },
10-
{ path = "C:\\Windows\\System32\\cmd.exe", args_pattern = "^.*$" },
11-
{ path = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", args_pattern = "^.*$" }
12-
]

plugins/plugin.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,3 @@ version = "1.0.1"
44
author = "plug"
55
api_version = "0.1.2a"
66
permissions = ["host_exec", "host_add_tab", "host_set_tab_owner", "host_get_tab_label"]
7-
allowed_commands = [
8-
{ path = "cmd.exe", args_pattern = "^.*$" },
9-
{ path = "powershell.exe", args_pattern = "^.*$" },
10-
{ path = "C:\\Windows\\System32\\cmd.exe", args_pattern = "^.*$" },
11-
{ path = "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", args_pattern = "^.*$" }
12-
]

0 commit comments

Comments
 (0)