AppImage build script updates

This commit is contained in:
Charles J. Cliffe 2016-04-29 00:03:47 -04:00
parent 6df9bfd167
commit d87e2511d9

View File

@ -1,17 +1,18 @@
#!/bin/bash
rm ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR
rm ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppImage
rm -rf ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir
mkdir ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir
cp ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.desktop ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir/
cp ${CMAKE_CURRENT_SOURCE_DIR}/src/CubicSDR.png ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir/
cp ${APPIMAGEKIT_APPRUN} ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir/
chmod +x ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir/AppRun
mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir/usr/bin
cp ${CMAKE_CURRENT_BINARY_DIR}/${EX_PLATFORM_NAME}/* ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir/usr/bin
mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir/usr/local/lib/
cp -R /usr/local/lib/SoapySDR ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir/usr/local/lib/
mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir/usr/lib
strip ${CMAKE_CURRENT_BINARY_DIR}/CubicSDR.AppDir/usr/bin/CubicSDR
IGNORE_PKG="libc6.* libusb.* libgcc.* libstd.* libudev.* libgtk.* libgdk.* libx.* libpango.* libglib.* libgl.* libcairo.* libfont.* libatk.* libwayland.* libthai.* libpixman.* zlib.* libpcre.* libice.* libuuid.* libpulse.* libjson.* libdbus.* libatspi.* libharf.* libselinux.* libmir.* libboost-system.* libprotobuf.* libdatrie.* libsystem.* libwrap.* libsndfile.* libasync.* libgraphite.* liblzma.* libgcrypt.* libflac.* libvorbis.* libgpg.* libogg.* libsm6 libpng.* libexpat.* libdrm.* libffi.* libfreetype.* libboost-filesystem.* libmirsdr.*"
@ -63,5 +64,5 @@ popd
pushd .
cd ${CMAKE_CURRENT_BINARY_DIR}
${APPIMAGEKIT_APPASSIST} CubicSDR.AppDir CubicSDR
${APPIMAGEKIT_APPASSIST} CubicSDR.AppDir CubicSDR.AppImage
popd