mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	Relocated index.html to ui subfolder. Fixed DEB and MACOS packaging
This commit is contained in:
		
							parent
							
								
									0a2e54cd60
								
							
						
					
					
						commit
						48e11096a7
					
				
					 7 changed files with 8 additions and 5 deletions
				
			
		| 
						 | 
					@ -39,6 +39,7 @@ mkdir -p /tmp/$PKGNAME/usr/local/bin/
 | 
				
			||||||
mkdir -p /tmp/$PKGNAME/etc/systemd/system/
 | 
					mkdir -p /tmp/$PKGNAME/etc/systemd/system/
 | 
				
			||||||
mkdir -p /tmp/$PKGNAME/usr/share/applications/
 | 
					mkdir -p /tmp/$PKGNAME/usr/share/applications/
 | 
				
			||||||
mkdir -p /tmp/$PKGNAME/etc/
 | 
					mkdir -p /tmp/$PKGNAME/etc/
 | 
				
			||||||
 | 
					mkdir -p /tmp/$PKGNAME/usr/share/riv
 | 
				
			||||||
mkdir -p /tmp/$PKGNAME/etc/xdg/autostart
 | 
					mkdir -p /tmp/$PKGNAME/etc/xdg/autostart
 | 
				
			||||||
chmod 0775 /tmp/$PKGNAME/ -R
 | 
					chmod 0775 /tmp/$PKGNAME/ -R
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,14 +50,14 @@ for resolution in 16x16 24x24 32x32 48x48 64x64 192x192 256x256 512x512; do
 | 
				
			||||||
  chmod 644 /tmp/$PKGNAME/usr/share/icons/hicolor/$resolution/apps/riv.png
 | 
					  chmod 644 /tmp/$PKGNAME/usr/share/icons/hicolor/$resolution/apps/riv.png
 | 
				
			||||||
done
 | 
					done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cp contrib/ui/mesh-ui/index.html /tmp/$PKGNAME/etc/
 | 
					cp -r contrib/ui/mesh-ui/ui /tmp/$PKGNAME/usr/share/riv
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cat > /tmp/$PKGNAME/usr/share/applications/riv.desktop << EOF
 | 
					cat > /tmp/$PKGNAME/usr/share/applications/riv.desktop << EOF
 | 
				
			||||||
[Desktop Entry]
 | 
					[Desktop Entry]
 | 
				
			||||||
Name=RiV mesh
 | 
					Name=RiV mesh
 | 
				
			||||||
GenericName=Mesh network
 | 
					GenericName=Mesh network
 | 
				
			||||||
Comment=RiV-mesh is an early-stage implementation of a fully end-to-end encrypted IPv6 network
 | 
					Comment=RiV-mesh is an early-stage implementation of a fully end-to-end encrypted IPv6 network
 | 
				
			||||||
Exec=sh -c "/usr/bin/mesh-ui /etc/index.html"
 | 
					Exec=sh -c "/usr/bin/mesh-ui /usr/share/riv/ui/index.html"
 | 
				
			||||||
Terminal=false
 | 
					Terminal=false
 | 
				
			||||||
Type=Application
 | 
					Type=Application
 | 
				
			||||||
Icon=riv
 | 
					Icon=riv
 | 
				
			||||||
| 
						 | 
					@ -93,7 +94,7 @@ usr/bin/mesh usr/bin
 | 
				
			||||||
usr/bin/meshctl usr/bin
 | 
					usr/bin/meshctl usr/bin
 | 
				
			||||||
usr/bin/mesh-ui usr/bin
 | 
					usr/bin/mesh-ui usr/bin
 | 
				
			||||||
usr/local/bin/meshctl usr/local/bin
 | 
					usr/local/bin/meshctl usr/local/bin
 | 
				
			||||||
etc/index.html etc
 | 
					usr/share/riv/ui usr/share/riv
 | 
				
			||||||
etc/xdg/autostart/riv.desktop etc/xdg/autostart
 | 
					etc/xdg/autostart/riv.desktop etc/xdg/autostart
 | 
				
			||||||
etc/systemd/system/*.service etc/systemd/system
 | 
					etc/systemd/system/*.service etc/systemd/system
 | 
				
			||||||
usr/share/applications/riv.desktop usr/share/applications
 | 
					usr/share/applications/riv.desktop usr/share/applications
 | 
				
			||||||
| 
						 | 
					@ -157,7 +158,7 @@ chmod 644 /tmp/$PKGNAME/etc/systemd/system/*
 | 
				
			||||||
chmod 644 /tmp/$PKGNAME/usr/share/applications/riv.desktop
 | 
					chmod 644 /tmp/$PKGNAME/usr/share/applications/riv.desktop
 | 
				
			||||||
chmod 644 /tmp/$PKGNAME/etc/xdg/autostart/*
 | 
					chmod 644 /tmp/$PKGNAME/etc/xdg/autostart/*
 | 
				
			||||||
chmod 755 /tmp/$PKGNAME/usr/bin/*
 | 
					chmod 755 /tmp/$PKGNAME/usr/bin/*
 | 
				
			||||||
chmod 755 /tmp/$PKGNAME/etc/index.html
 | 
					chmod -R u+rwX,go+rX,g-w /tmp/$PKGNAME/usr/share/riv/ui
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dpkg-deb --build --root-owner-group /tmp/$PKGNAME
 | 
					dpkg-deb --build --root-owner-group /tmp/$PKGNAME
 | 
				
			||||||
cp /tmp/$PKGFILE .
 | 
					cp /tmp/$PKGFILE .
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,7 +47,9 @@ cp meshctl pkgbuild/root/usr/local/bin
 | 
				
			||||||
cp mesh pkgbuild/root/Applications/RiV-mesh.app/Contents/MacOS
 | 
					cp mesh pkgbuild/root/Applications/RiV-mesh.app/Contents/MacOS
 | 
				
			||||||
cp mesh-ui pkgbuild/root/Applications/RiV-mesh.app/Contents/MacOS
 | 
					cp mesh-ui pkgbuild/root/Applications/RiV-mesh.app/Contents/MacOS
 | 
				
			||||||
cp riv.icns pkgbuild/root/Applications/RiV-mesh.app/Contents/Resources
 | 
					cp riv.icns pkgbuild/root/Applications/RiV-mesh.app/Contents/Resources
 | 
				
			||||||
cp contrib/ui/mesh-ui/index.html pkgbuild/root/Applications/RiV-mesh.app/Contents/MacOS
 | 
					cp contrib/ui/mesh-ui/ui/index.html pkgbuild/root/Applications/RiV-mesh.app/Contents/MacOS
 | 
				
			||||||
 | 
					cp -r contrib/ui/mesh-ui/ui/assets pkgbuild/root/Applications/RiV-mesh.app/Contents/MacOS
 | 
				
			||||||
 | 
					cp -r contrib/ui/mesh-ui/ui/webfonts pkgbuild/root/Applications/RiV-mesh.app/Contents/MacOS
 | 
				
			||||||
cp contrib/macos/mesh.plist pkgbuild/root/Library/LaunchDaemons
 | 
					cp contrib/macos/mesh.plist pkgbuild/root/Library/LaunchDaemons
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Create the postinstall script
 | 
					# Create the postinstall script
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue