Skip to content
Snippets Groups Projects
Commit 8049d1c1 authored by akiraohgaki's avatar akiraohgaki
Browse files

Remove snap and appimage packaging resources

parent d9e4c0db
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
PKGNAME='ocs-url'
PKGVER='0.0.0'
PKGREL='1'
curl -L -o linuxdeployqt "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
chmod 755 linuxdeployqt
./linuxdeployqt --appimage-extract
sh scripts/import.sh
qmake PREFIX="/usr"
make
make INSTALL_ROOT="${PKGNAME}.AppDir" install
./squashfs-root/AppRun ${PKGNAME}.AppDir/usr/share/applications/${PKGNAME}.desktop -bundle-non-qt-libs -no-translations -qmldir="app/qml"
./squashfs-root/AppRun ${PKGNAME}.AppDir/usr/share/applications/${PKGNAME}.desktop -appimage
mv *.AppImage ${PKGNAME}-${PKGVER}-${PKGREL}-x86_64.AppImage
......@@ -7,7 +7,4 @@ DISTFILES += \
$${PWD}/ubuntu/debian/ocs-url.install \
$${PWD}/fedora/ocs-url.spec \
$${PWD}/opensuse/ocs-url.spec \
$${PWD}/archlinux/PKGBUILD \
$${PWD}/snap/snapcraft.yaml \
$${PWD}/snap/snap/gui/ocs-url.desktop \
$${PWD}/appimage/appimage.sh
$${PWD}/archlinux/PKGBUILD
[Desktop Entry]
Name=ocs-url
Exec=ocs-url.ocs-url %u
Icon=${SNAP}/usr/share/icons/hicolor/scalable/apps/ocs-url.svg
Type=Application
Terminal=false
NoDisplay=true
Categories=Network;Utility;
MimeType=x-scheme-handler/ocs;x-scheme-handler/ocss;x-scheme-handler/xdg;x-scheme-handler/xdgs;
name: ocs-url
version: '0.0.0'
summary: OCS-URL
description: |
An install helper program for items served on OpenCollaborationServices (OCS).
grade: devel
confinement: strict
icon: desktop/ocs-url.svg
parts:
ocs-url:
prepare: |
sh scripts/import.sh
plugin: qmake
source: ./
qt-version: qt5
options:
- PREFIX="/usr"
build-packages:
- build-essential
- qt5-default
- libqt5svg5-dev
- qtdeclarative5-dev
- git
- snapcraft
stage-packages:
- libqt5svg5
- qml-module-qtquick-controls
after:
- desktop-qt5
apps:
ocs-url:
command: usr/bin/ocs-url
plugs:
- home
- network
- opengl
- x11
- unity7
......@@ -93,19 +93,7 @@ build_archlinux() {
}
build_snap() {
# docker-image: ubuntu:16.04
apt update -qq
apt -y install build-essential qt5-default libqt5svg5-dev qtdeclarative5-dev
apt -y install git snapcraft
apt -y install curl
useradd -m ${PKGUSER}
export HOME="/home/${PKGUSER}"
chown -R ${PKGUSER}:${PKGUSER} "${PROJDIR}"
su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
transfer_file "$(find "${PROJDIR}/build_"*${BUILDTYPE} -type f -name "${PKGNAME}*.snap")"
echo 'Not implemented yet'
}
build_flatpak() {
......@@ -113,19 +101,7 @@ build_flatpak() {
}
build_appimage() {
# docker-image: ubuntu:14.04
apt update -qq
apt -y install build-essential qt5-default libqt5svg5-dev qtdeclarative5-dev
apt -y install git qtdeclarative5-dev-tools
apt -y install curl
useradd -m ${PKGUSER}
export HOME="/home/${PKGUSER}"
chown -R ${PKGUSER}:${PKGUSER} "${PROJDIR}"
su -c "sh "${BUILDSCRIPT}" ${BUILDTYPE}" ${PKGUSER}
transfer_file "$(find "${PROJDIR}/build_"*${BUILDTYPE} -type f -name "${PKGNAME}*.AppImage")"
echo 'Not implemented yet'
}
if [ "${BUILDTYPE}" = 'ubuntu' ]; then
......
......@@ -67,15 +67,7 @@ build_archlinux() {
}
build_snap() {
cd "${PROJDIR}"
mkdir -p "${BUILDDIR}"
export_srcarchive "${SRCARCHIVE}"
tar -xzvf "${SRCARCHIVE}" -C "${BUILDDIR}"
cp "${PROJDIR}/pkg/snap/snapcraft.yaml" "${BUILDDIR}/${PKGNAME}"
cp -r "${PROJDIR}/pkg/snap/snap" "${BUILDDIR}/${PKGNAME}"
cd "${BUILDDIR}/${PKGNAME}"
snapcraft
echo 'Not implemented yet'
}
build_flatpak() {
......@@ -83,14 +75,7 @@ build_flatpak() {
}
build_appimage() {
cd "${PROJDIR}"
mkdir -p "${BUILDDIR}"
export_srcarchive "${SRCARCHIVE}"
tar -xzvf "${SRCARCHIVE}" -C "${BUILDDIR}"
cp "${PROJDIR}/pkg/appimage/appimage.sh" "${BUILDDIR}/${PKGNAME}"
cd "${BUILDDIR}/${PKGNAME}"
sh appimage.sh
echo 'Not implemented yet'
}
if [ "${BUILDTYPE}" = 'ubuntu' ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment