rename
This commit is contained in:
parent
46e8d02cd7
commit
83d8e1cc88
@ -1,10 +1,10 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "integral_site"
|
name = "ytbn_graphing_software"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
license = "AGPL-3.0"
|
license = "AGPL-3.0"
|
||||||
repository = "https://github.com/Titaniumtown/integral_site"
|
repository = "https://github.com/Titaniumtown/YTBN-Graphing-Software"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type=["cdylib"]
|
crate-type=["cdylib"]
|
||||||
|
|||||||
14
build.sh
14
build.sh
@ -8,16 +8,16 @@ cargo test
|
|||||||
|
|
||||||
#apply optimizations via wasm-opt
|
#apply optimizations via wasm-opt
|
||||||
wasm_opt() {
|
wasm_opt() {
|
||||||
wasm-opt -Oz -o 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/integral_site_bg_2.wasm pkg/integral_site_bg.wasm
|
mv pkg/ytbn_graphing_software_bg_2.wasm pkg/ytbn_graphing_software_bg.wasm
|
||||||
}
|
}
|
||||||
|
|
||||||
if test "$1" == "" || test "$1" == "release"; then
|
if test "$1" == "" || test "$1" == "release"; then
|
||||||
wasm-pack build --target web --release --no-typescript
|
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
|
wasm_opt #apply wasm optimizations
|
||||||
echo "Binary size (pre-strip): $(du -sb pkg/integral_site_bg.wasm)"
|
echo "Binary size (pre-strip): $(du -sb pkg/ytbn_graphing_software_bg.wasm)"
|
||||||
llvm-strip --strip-all pkg/integral_site_bg.wasm
|
llvm-strip --strip-all pkg/ytbn_graphing_software_bg.wasm
|
||||||
elif test "$1" == "debug"; then
|
elif test "$1" == "debug"; then
|
||||||
wasm-pack build --target web --debug --no-typescript
|
wasm-pack build --target web --debug --no-typescript
|
||||||
else
|
else
|
||||||
@ -26,8 +26,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir tmp
|
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/
|
cp www/index.html www/style.css tmp/
|
||||||
|
|
||||||
echo "Total size: $(du -sb 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)"
|
||||||
4
push.sh
4
push.sh
@ -5,9 +5,9 @@ bash build.sh
|
|||||||
|
|
||||||
echo "rsyncing"
|
echo "rsyncing"
|
||||||
rsync -av --delete --info=progress2 tmp/ rpi-public:/mnt/hdd/http_share/integral-demo/
|
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
|
rm -fr tmp
|
||||||
cd ../integral-demo
|
cd ../titaniumtown.github.io
|
||||||
git add .
|
git add .
|
||||||
git commit -m "update"
|
git commit -m "update"
|
||||||
git push
|
git push
|
||||||
@ -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.";
|
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
|
// 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
|
// Stores settings
|
||||||
struct AppSettings {
|
struct AppSettings {
|
||||||
@ -304,7 +304,7 @@ impl MathApp {
|
|||||||
|
|
||||||
impl epi::App for MathApp {
|
impl epi::App for MathApp {
|
||||||
// The name of the program (displayed when running natively as the window title)
|
// 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.
|
// Called once before the first frame.
|
||||||
fn setup(&mut self, _ctx: &Context, _frame: &Frame, _storage: Option<&dyn Storage>) {}
|
fn setup(&mut self, _ctx: &Context, _frame: &Frame, _storage: Option<&dyn Storage>) {}
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<title>Integral Demonstration</title>
|
<title>(Yet-to-be-named) Graphing Software</title>
|
||||||
<link rel="stylesheet" href="style.css" />
|
<link rel="stylesheet" href="style.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user