Skip to content

Commit b265874

Browse files
committed
fix: hash
1 parent 441b077 commit b265874

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
2323
- name: Replace version hash
2424
run: |
25-
sed -i "s/const VERSION: &str = \".*\"/const VERSION: &str = \"$COMMIT_HASH\"/" src/shared/memory.rs
25+
sed -i "s/\(const VERSION: &str = \"\)[a-f0-9]\{7\}\"/\1$COMMIT_HASH\"/" src/shared/memory.rs)"
2626
- name: Commit updated version
2727
run: |
2828
git config --global user.name "Wasp Bot"

src/shared/memory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use windows::{
1515
},
1616
};
1717

18-
const VERSION: const VERSION: &str = "e7167fc"str = "1a698d8";
18+
const VERSION: &str = "e7167fc";
1919
const SHARED_MEM_NAME: &[u8] = b"WASPINPUT_DATA\0";
2020
const IMAGE_DATA_SIZE: usize = 33177602;
2121

0 commit comments

Comments
 (0)