mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
Merge pull request #23 from RiV-chain/offline_ui
Relocated index.html to ui subfolder. Fixed DEB and MACOS packaging (Fix for RIVM-4)
This commit is contained in:
commit
63bb94efe1
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/usr/share/applications/
|
||||
mkdir -p /tmp/$PKGNAME/etc/
|
||||
mkdir -p /tmp/$PKGNAME/usr/share/riv
|
||||
mkdir -p /tmp/$PKGNAME/etc/xdg/autostart
|
||||
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
|
||||
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
|
||||
[Desktop Entry]
|
||||
Name=RiV mesh
|
||||
GenericName=Mesh 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
|
||||
Type=Application
|
||||
Icon=riv
|
||||
|
@ -93,7 +94,7 @@ usr/bin/mesh usr/bin
|
|||
usr/bin/meshctl usr/bin
|
||||
usr/bin/mesh-ui usr/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/systemd/system/*.service etc/systemd/system
|
||||
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/etc/xdg/autostart/*
|
||||
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
|
||||
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-ui pkgbuild/root/Applications/RiV-mesh.app/Contents/MacOS
|
||||
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
|
||||
|
||||
# Create the postinstall script
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue