File tree 2 files changed +9
-3
lines changed 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 19
19
run : sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev gcc-mingw-w64-i686 gcc-mingw-w64
20
20
21
21
- uses : Swatinem/rust-cache@v2
22
+ with :
23
+ workspaces : noita-proxy -> target
22
24
23
25
- name : Build ewext
24
26
run : cargo build --release --target i686-pc-windows-gnu
Original file line number Diff line number Diff line change 1
- import tomllib
2
1
import os
3
2
from zipfile import ZipFile , ZIP_DEFLATED as COMPRESS_TYPE
4
3
import shutil
4
+ import re
5
5
6
6
COMPRESS_LEVEL = 9
7
7
8
- cargo_manifest = tomllib .load (open ("noita-proxy/Cargo.toml" , "rb" ))
9
- version = cargo_manifest ["package" ]["version" ]
8
+ cargo_manifest = open ("noita-proxy/Cargo.toml" , "r" ).read ()
9
+ version = re .findall ('version = "(.*?)"' , cargo_manifest )[0 ]
10
+
11
+ print ("Version:" , version )
12
+
13
+ assert version is not None
10
14
11
15
os .makedirs ("target" , exist_ok = True )
12
16
You can’t perform that action at this time.
0 commit comments