mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 23:36:32 +00:00
update scripts
This commit is contained in:
parent
92cba974f2
commit
7dfc2dec47
2 changed files with 7 additions and 4 deletions
9
mnt.ps1
9
mnt.ps1
|
@ -1,3 +1,6 @@
|
||||||
copy -r -Force E:/* ~/Desktop/zenithos/src/
|
$dir = "~\Projects\ZenithOS"
|
||||||
del ~/Desktop/zenithos/*.iso
|
Remove-Item -Recurse -Force ${dir}\src\*
|
||||||
move ~/Desktop/zenithos/src/Tmp/MyDistro.ISO.C ~/Desktop/zenithos/Zenith-latest-$(get-date -Format "yyyy-MM-dd-HH_mm_ss").iso
|
Copy-Item -Recurse -Force Z:/* ${dir}\src\
|
||||||
|
Remove-Item ${dir}\*.iso
|
||||||
|
Move-Item ${dir}\src\Tmp\MyDistro.ISO.C ${dir}\Zenith-latest-$(Get-Date -Format "yyyy-MM-dd-HH_mm_ss").iso
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,6 @@ sudo cp -r /mnt/* src/
|
||||||
|
|
||||||
sudo umount /mnt
|
sudo umount /mnt
|
||||||
sudo qemu-nbd -d /dev/nbd0
|
sudo qemu-nbd -d /dev/nbd0
|
||||||
sudo chown -R v:v src/*
|
sudo chown -R $USER:$USER src/*
|
||||||
rm Zenith-latest*
|
rm Zenith-latest*
|
||||||
mv src/Tmp/MyDistro.ISO.C ./Zenith-latest-$(date +%Y-%m-%d-%H_%M_%S).iso
|
mv src/Tmp/MyDistro.ISO.C ./Zenith-latest-$(date +%Y-%m-%d-%H_%M_%S).iso
|
||||||
|
|
Loading…
Reference in a new issue