From 1570e25f7908abdd4ae2122dcebddeb083c19489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Albeza?= Date: Thu, 18 Jul 2024 17:34:41 +0200 Subject: [PATCH] Add deploy script (#10) --- .gitignore | 4 ++++ coco-core/src/stack.rs | 1 + deploy.sh | 5 +++++ 3 files changed, 10 insertions(+) create mode 100755 deploy.sh diff --git a/.gitignore b/.gitignore index 196e176..2d76bb8 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,7 @@ Cargo.lock # Added by cargo /target + +# Project-related +/dist + diff --git a/coco-core/src/stack.rs b/coco-core/src/stack.rs index 60abd01..94a87dc 100644 --- a/coco-core/src/stack.rs +++ b/coco-core/src/stack.rs @@ -45,6 +45,7 @@ impl Stack { return self.data[i as usize]; } + #[cfg(test)] pub fn short_at(&self, i: u8) -> u16 { let hi = self.data[i as usize]; let lo = self.data[i.wrapping_add(1) as usize]; diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..957929b --- /dev/null +++ b/deploy.sh @@ -0,0 +1,5 @@ +./build.sh +cp -r coco-ui/roms dist/ +cp -r coco-ui/vendor dist/ +cp coco-ui/index.* dist/ +cp coco-ui/styles.css dist/