This commit is contained in:
Simon Gardling 2022-03-08 12:20:51 -05:00
parent 46e8d02cd7
commit 83d8e1cc88
5 changed files with 14 additions and 14 deletions

View File

@ -1,10 +1,10 @@
[package]
name = "integral_site"
name = "ytbn_graphing_software"
version = "0.1.0"
edition = "2021"
build = "build.rs"
license = "AGPL-3.0"
repository = "https://github.com/Titaniumtown/integral_site"
repository = "https://github.com/Titaniumtown/YTBN-Graphing-Software"
[lib]
crate-type=["cdylib"]

View File

@ -8,16 +8,16 @@ cargo test
#apply optimizations via wasm-opt
wasm_opt() {
wasm-opt -Oz -o pkg/integral_site_bg_2.wasm pkg/integral_site_bg.wasm
mv pkg/integral_site_bg_2.wasm pkg/integral_site_bg.wasm
wasm-opt -Oz -o pkg/ytbn_graphing_software_bg_2.wasm pkg/ytbn_graphing_software_bg.wasm
mv pkg/ytbn_graphing_software_bg_2.wasm pkg/ytbn_graphing_software_bg.wasm
}
if test "$1" == "" || test "$1" == "release"; then
wasm-pack build --target web --release --no-typescript
echo "Binary size (pre-wasm_opt): $(du -sb pkg/integral_site_bg.wasm)"
echo "Binary size (pre-wasm_opt): $(du -sb pkg/ytbn_graphing_software_bg.wasm)"
wasm_opt #apply wasm optimizations
echo "Binary size (pre-strip): $(du -sb pkg/integral_site_bg.wasm)"
llvm-strip --strip-all pkg/integral_site_bg.wasm
echo "Binary size (pre-strip): $(du -sb pkg/ytbn_graphing_software_bg.wasm)"
llvm-strip --strip-all pkg/ytbn_graphing_software_bg.wasm
elif test "$1" == "debug"; then
wasm-pack build --target web --debug --no-typescript
else
@ -26,8 +26,8 @@ else
fi
mkdir tmp
cp -r pkg/integral_site_bg.wasm pkg/integral_site.js tmp/
cp -r pkg/ytbn_graphing_software_bg.wasm pkg/ytbn_graphing_software.js tmp/
cp www/index.html www/style.css tmp/
echo "Total size: $(du -sb tmp)"
echo "Binary size: $(du -sb tmp/integral_site_bg.wasm)"
echo "Binary size: $(du -sb tmp/ytbn_graphing_software_bg.wasm)"

View File

@ -5,9 +5,9 @@ bash build.sh
echo "rsyncing"
rsync -av --delete --info=progress2 tmp/ rpi-public:/mnt/hdd/http_share/integral-demo/
rsync -av --delete --info=progress2 --exclude=".git" tmp/ ../integral-demo/
rsync -av --delete --info=progress2 --exclude=".git" tmp/ ../titaniumtown.github.io/
rm -fr tmp
cd ../integral-demo
cd ../titaniumtown.github.io
git add .
git commit -m "update"
git push

View File

@ -84,7 +84,7 @@ const HELP_OTHER: &str =
const LICENSE_INFO: &str = "The AGPL license ensures that the end user, even if not hosting the program itself, is still guaranteed access to the source code of the project in question.";
// The URL of the project
const PROJECT_URL: &str = "https://github.com/Titaniumtown/integral_site";
const PROJECT_URL: &str = "https://github.com/Titaniumtown/YTBN_graphing_software";
// Stores settings
struct AppSettings {
@ -304,7 +304,7 @@ impl MathApp {
impl epi::App for MathApp {
// The name of the program (displayed when running natively as the window title)
fn name(&self) -> &str { "Integral Demonstration" }
fn name(&self) -> &str { "(Yet-to-be-named) Graphing Software" }
// Called once before the first frame.
fn setup(&mut self, _ctx: &Context, _frame: &Frame, _storage: Option<&dyn Storage>) {}

View File

@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<title>Integral Demonstration</title>
<title>(Yet-to-be-named) Graphing Software</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>