#1GB for a starter (almost) empty project?
37 messages · Page 1 of 1 (latest)
this folder have source code of all required dependencies used to build it, it will have node_modules (biggest I guess) and target folder with bunch of incremental builds to improve speed
node/js project are famous for it
if you have multiple project using same react or other framework. bun.sh can save disk and install time by using Global cache with hardlinks https://bun.sh/docs/install/cache#saving-disk-space . my reason to not use node.js
don't worry your final release version of app will have only required code
No no this is a release build of the app. I dont think it has node modules in it? I mean on the project side it's fine but if it's in the release build im kinda surprised
This is the final release
I just run tauri build
The obsidian app (I think also made with tauri) is only 200mb
Or is there any extra junk left after that command?
intermediate files perhaps?
check your final compiled dist folder size, give a quick read https://v2.tauri.app/concept/size/
are you looking into src-tauri/target/release/bundle ??
my fresh react and tailwind is only 3.8 mb, only appimage is 136 MB (it is suppose to be large)
1 GB is still very large, but that is not bundle. I have 12 mb file for this project in release folder. may be your frontend is including some binaries from node packages. you have to optimize that may change some dependencies to devDependencies
The screenshot shows 3k files and 551 folders, no way this is the final artifact. This is the target folder with all rust deps and other bundle files.
Also 200mb for a final app on windows sounds completely unrealistic if you do not bundle like ~185 mb and/or have the offline webview2 installer bundled.
I think this might be it. How do I know which files I don't need?
This sounds good too. Thank you
I have no idea. Maybe it does. I only use the get started guide for nextjs that's linked in tauri. Set up everything. Then build.
You need these files during build, so a development folder containing ~10gb of intermediate files, build files etc is not unusual. You only need the .exe/.msi to run your tauri app. So in your case I assume you have an <yourapp>.msi file in your target folder right? This is the only file needed to install and run the tauri app on your or other windows systems.
to test things locally on your machine the <yourapp>.exe can be used
src-tauri/target/release/bundle/***/ you only need to share setup file from this folder, rest of files are reused by tauri, you don't need to save any file form target folder they are safe to delete but never need to delete them as they will be recreated on every build. target folder is in .gitignore so it stay on your disk to be re used only. you can delete entire target folder. but only delete it if you try to save code in rar/zip or you need disk space when you are not working on project for long time. deleting it create more work for tauri and slow new build process.
After running tauri build it'll tell you which files are the binaries/installers you can distribute
something like this
Thank you everyone who has explained everything so patiently😠will try everything as soon as I got home
bundle folder have multiple folder based on OS you are building on and target OS for you are building. I am on linux so I have these folder but on window you will have windows related. in window folder you have your setup file. as @devout wagon said final release setup file that you can send to your user will be listed at the end with message " Finished * bundles at:"
I typed half message last night, got too sleepy and forgot to send 😦
Ohh yea it's just 2mb ðŸ˜
Thank you guys!
Can I just share the exe itself though as a single executable?
install it and test to see if everything work as expected, then congratulations you are a Desktop app developer, update resume then yes you can send it to friend with new resume.
yes but some things won't work like autostart plugin so recommended way is the installer to share
Finally I can say I'm a
- App developer
- Rust programmer
- JS Master
I see. Okay thank you