#Cross Compiling for Windows on Linux
12 messages · Page 1 of 1 (latest)
Would be neat to see a binary created with this method… but otherwise pretty innovative (and involved, wow!)
Thanks... I have a single script i run to build for all platforms aside from mac so i found setting up a container to be better than using github actions... Am sure the same can be done using docker, will add a dockerfile config once i have tested it out
Sounds interesting, but the link is currently invalid
Apologies, I made changes to my portfolio structure and forgot to update this link. Here is the new link and also updated the main post link: https://kilisio.deno.dev/blog/software development/cross-compile-tauri-app-for-windows-x64-using-vagga-container/
This is really cool 💯 does it generate correct binary like girhib actions then i try it. Must be faster also?🙏
yes it generates correct binary, I have tested in windows 10 and 11 VMs
+1
since all other build options failed i thought i try yours but it seems not possible to install this on osx ``` wget https://files.zerogw.com/vagga/vagga-0.8.1-86-g505b3ea.tar.xz
tar -xJf vagga-0.8.1-86-g505b3ea.tar.xz
cd vagga
chmod +x install.sh
sudo ./install.sh
echo "ubuntu-mirror: http://archive.ubuntu.com/ubuntu
external-volumes:
X11: /tmp/.X11-unix/" >~/.vagga.yaml
--2023-07-12 01:28:29-- https://files.zerogw.com/vagga/vagga-0.8.1-86-g505b3ea.tar.xz
Resolving files.zerogw.com (files.zerogw.com)... 205.185.216.42, 205.185.216.10
Connecting to files.zerogw.com (files.zerogw.com)|205.185.216.42|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12894480 (12M) [application/x-xz]
Saving to: ‘vagga-0.8.1-86-g505b3ea.tar.xz’
vagga-0.8.1-86-g505b3ea 100%[==============================>] 12,30M 32,6MB/s in 0,4s
2023-07-12 01:28:29 (32,6 MB/s) - ‘vagga-0.8.1-86-g505b3ea.tar.xz’ saved [12894480/12894480]
Password:
install: chmod 755 /usr/share/zsh/site-functions: Read-only file system
install: chmod 755 /usr/bin: Read-only file system
install: mkdir /usr/lib/vagga: Read-only file system
install: /usr/share/zsh/site-functions/_vagga: Read-only file system
install: /usr/lib/vagga/vagga: No such file or directory
install: /usr/lib/vagga/apk: No such file or directory
install: /usr/lib/vagga/busybox: No such file or directory
install: /usr/lib/vagga/alpine-keys.apk: No such file or directory
ln: /usr/bin/vagga: Read-only file system```
Am on arch, so I never tried vagga on osx... Ill test out the docker script version and post it here
Great stuff! Did you get a chance to look at a dockerfile?
I started, but then got swamped with work. Ill try and complete the script, maybe sometime next week when I have more free time.