@@ -11,6 +11,15 @@ platformio platform install "https://github.com/platformio/platform-ststm32.git"
11
11
python3 -c" import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-arduinoststm32']['version'] = '*'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
12
12
exit 1
13
13
}
14
+
15
+ # Fix for variant path change while not updated in PIO
16
+ python3 -c" import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/remram_v1.json'), 'r+'); data=json.load(fp); data['build']['variant'] = '3dprinter/REMRAM_V1'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
17
+ exit 1
18
+ }
19
+ python3 -c" import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/blackpill_f103c8.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'Generic_F1/PILL_F103XX'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
20
+ exit 1
21
+ }
22
+
14
23
ln --symbolic" $GITHUB_WORKSPACE " " $HOME /.platformio/packages/framework-arduinoststm32" || {
15
24
exit 1
16
25
}