- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 577
 
Bundling Chromium
        probonopd edited this page Aug 12, 2015 
        ·
        6 revisions
      
    #!/bin/bash -x
set +e
mkdir chromium/chromium.AppDir
cd chromium/
wget -c "https://download-chromium.appspot.com/dl/Linux_x64"
wget -c http://mirrors.kernel.org/ubuntu/pool/main/u/udev/libudev0_151-12.3_amd64.deb
cd chromium.AppDir/
unzip ../Linux
find ../ -name *.deb -exec dpkg -x \{\} . \;
mv lib/ usr/lib
find -name product_logo_48.png -exec cp \{\} chromium.png \;
mkdir -p usr/bin
cd usr/bin
ln -s ../../chrome-linux/chrome-wrapper chrome
cd -
cat > ./AppRun <<\EOF
#!/bin/sh
HERE=$(dirname $(readlink -f "${0}"))
export LD_LIBRARY_PATH="${HERE}"/usr/lib:$PATH
"${HERE}"/usr/bin/chrome --no-sandbox $@
EOF
chmod a+x ./AppRun
strip ./chrome-linux/chrome
cat > ./chromium.desktop <<\EOF
[Desktop Entry]
Name=Chromium
Icon=chromium
Exec=chromium %u
Categories=Network;WebBrowser;
StartupNotify=true
EOF
cd ..
wget -c "https://github.com/probonopd/AppImageKit/releases/download/1/AppImageAssistant"
chmod a+x ./AppImageAssistant
./AppImageAssistant ./chromium.AppDir/ ./chromium.AppImage