File tree Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Expand file tree Collapse file tree 3 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 49
49
- uses : msys2/setup-msys2@v2
50
50
with :
51
51
msystem : MINGW32
52
- install : mingw-w64-i686-gtk3 mingw-w64-i686-toolchain mingw-w64-i686-ntldd mingw-w64-i686-imagemagick
53
- - uses : actions-rs/toolchain@v1
54
- with :
55
- toolchain : stable-i686-pc-windows-gnu
52
+ install : mingw-w64-i686-gtk3 mingw-w64-i686-rust mingw-w64-i686-toolchain mingw-w64-i686-ntldd mingw-w64-i686-imagemagick
56
53
- uses : actions/checkout@v2
57
54
- name : Build and package
58
55
shell : msys2 {0}
62
59
SSL_COM_CREDENTIAL_ID : ${{ github.event_name == 'release' && secrets.SSL_COM_CREDENTIAL_ID || '' }}
63
60
SSL_COM_TOTP_SECRET : ${{ github.event_name == 'release' && secrets.SSL_COM_TOTP_SECRET || '' }}
64
61
SIGN : ${{ github.event_name == 'release' && '--sign' || '' }}
65
- run : cd windows && python build.py --rustup="C:/Rust/.cargo/bin/rustup.exe" $RELEASE $SIGN
62
+ run : cd windows && python build.py $RELEASE $SIGN
66
63
- uses : actions/upload-artifact@v2
67
64
with :
68
65
if-no-files-found : error
Original file line number Diff line number Diff line change 5
5
- ` libraries.wxi ` - Generated automatically by ` build.py ` with a list of needed dlls. Included by ` keyboard-configurator.wxs ` .
6
6
7
7
### Dependencies
8
- - [ Rustup] ( https://rustup.rs/ )
9
8
- [ MSYS2] ( https://www.msys2.org/ )
10
9
- [ WiX Toolset] ( https://wixtoolset.org/ )
11
10
12
- In msys2, run ` pacman -S mingw-w64-i686-gtk3 mingw-w64-i686-toolchain mingw-w64-i686-ntldd mingw-w64-i686-imagemagick ` .
13
-
14
- Run ` rustup toolchain add stable-i686-pc-windows-gnu ` .
11
+ In msys2, run ` pacman -S ingw-w64-i686-gtk3 mingw-w64-i686-rust mingw-w64-i686-toolchain mingw-w64-i686-ntldd mingw-w64-i686-imagemagick ` .
15
12
16
13
### Building
17
14
` .\build.bat ` will build and generate a ` .msi ` installer.
Original file line number Diff line number Diff line change 3
3
import argparse
4
4
import os
5
5
import re
6
+ import shlex
6
7
import shutil
7
8
import subprocess
8
9
import sys
14
15
parser = argparse .ArgumentParser ()
15
16
parser .add_argument ('--release' , action = 'store_true' )
16
17
parser .add_argument ('--sign' , action = 'store_true' )
17
- parser .add_argument ('--rustup ' , default = ( os . environ [ 'HOMEPATH' ] + "/. cargo/bin/rustup.exe" ) )
18
+ parser .add_argument ('--cargo ' , default = ' cargo' )
18
19
parser .add_argument ('--wix' , default = "C:/Program Files (x86)/WiX Toolset v3.11" )
19
20
args = parser .parse_args ()
20
21
21
- # Rust toolchain version to use
22
- RUST_TOOLCHAIN = 'stable-i686-pc-windows-gnu'
23
- CARGO = [args .rustup , "run" , RUST_TOOLCHAIN , "cargo" ]
22
+ CARGO = shlex .split (args .cargo )
24
23
# Executables to install
25
24
TARGET_DIR = "../target/" + ('release' if args .release else 'debug' )
26
25
EXES = {
You can’t perform that action at this time.
0 commit comments