Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:maxrd2:deps:toolkit
AppImageKit
mkappimagedir.in
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mkappimagedir.in of Package AppImageKit
#!/bin/sh APP_NAME=$1 CURRENT_DIRECTORY=$(pwd) if [ -d $CURRENT_DIRECTORY ] ; then W=$(ls -ld $CURRENT_DIRECTORY | sed 's/-.*//' | grep 'w' | wc -l) if [ $W -lt 0 ] ; then echo "Sorry, you don't have write permission in $CURRENT_DIRECTORY. Quit." exit 1 fi fi if [ "$APP_NAME" == "" ] ; then echo "usage: mkappimagedir [Application Name]" exit 0 else echo "Creating ${APP_NAME}.AppDir..." if [ ! -d "${CURRENT_DIRECTORY}/${APP_NAME}.AppDir" ] ; then mkdir ${CURRENT_DIRECTORY}/${APP_NAME}.AppDir fi pushd ${CURRENT_DIRECTORY}/${APP_NAME}.AppDir &>/dev/null if [ ! -f ${APP_NAME}.desktop ] ; then echo "[Desktop Entry]" > ${APP_NAME}.desktop echo "Type=Application" >> ${APP_NAME}.desktop echo "Name=${APP_NAME}" >> ${APP_NAME}.desktop echo "Exec=${APP_NAME}" >> ${APP_NAME}.desktop echo "Comment=" >> ${APP_NAME}.desktop echo "Icon=${APP_NAME}" >> ${APP_NAME}.desktop echo "Categories=;" >> ${APP_NAME}.desktop echo "Terminal=false" >> ${APP_NAME}.desktop echo "NoDisplay=true" >> ${APP_NAME}.desktop fi touch ${APP_NAME}.svg ln -sf ${APP_NAME}.svg .DirIcon cp -a /usr/lib/appimagetool/AppRun . mkdir usr popd &>/dev/null echo "Successfully created ${APP_NAME}.AppDir." echo "Now you need to fill ${APP_NAME}.desktop and replace ${APP_NAME}.svg." echo "Enjoy!" fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor