mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-29 08:44:15 +01:00
test
This commit is contained in:
parent
4958611ccc
commit
4e1511734c
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -64,7 +64,7 @@ jobs:
|
|||||||
|
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
# pyinstaller-options: --onefile
|
# pyinstaller-options: --onefile
|
||||||
packages: libudev-dev
|
linux-packages: libudev-dev
|
||||||
executable-name: sc64deployer
|
executable-name: sc64deployer
|
||||||
package-name: sc64deployer-linux
|
package-name: sc64deployer-linux
|
||||||
# package-options: -czf
|
# package-options: -czf
|
||||||
@ -92,10 +92,10 @@ jobs:
|
|||||||
replace-with: '-'
|
replace-with: '-'
|
||||||
|
|
||||||
- name: Install required linux packages
|
- name: Install required linux packages
|
||||||
if: matrix.packages
|
if: matrix.linux-packages
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install ${{ matrix.packages }}
|
sudo apt-get -y install ${{ matrix.linux-packages }}
|
||||||
|
|
||||||
- name: Build deployer
|
- name: Build deployer
|
||||||
run: cargo b -r
|
run: cargo b -r
|
||||||
|
@ -177,7 +177,7 @@ enum TvType {
|
|||||||
fn main() {
|
fn main() {
|
||||||
let cli = Cli::parse();
|
let cli = Cli::parse();
|
||||||
|
|
||||||
// panic::set_hook(Box::new(|_| {}));
|
panic::set_hook(Box::new(|_| {}));
|
||||||
|
|
||||||
match panic::catch_unwind(|| handle_command(&cli.command, cli.sn)) {
|
match panic::catch_unwind(|| handle_command(&cli.command, cli.sn)) {
|
||||||
Ok(_) => {}
|
Ok(_) => {}
|
||||||
@ -329,7 +329,7 @@ fn handle_64dd_command(sn: Option<String>, args: &_64DDArgs) -> Result<(), sc64:
|
|||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
thread::sleep(Duration::from_micros(1));
|
thread::sleep(Duration::from_millis(1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user