15 lines
306 B
JavaScript
15 lines
306 B
JavaScript
import Zemu from "@zondax/zemu";
|
|
|
|
const catchExit = async () => {
|
|
process.on("SIGINT", () => {
|
|
Zemu.stopAllEmuContainers(function () {
|
|
process.exit();
|
|
});
|
|
});
|
|
};
|
|
|
|
module.exports = async () => {
|
|
await catchExit();
|
|
await Zemu.checkAndPullImage();
|
|
await Zemu.stopAllEmuContainers();
|
|
}; |