Skip to content

Commit

Permalink
test scopy1 ubuntu appimage
Browse files Browse the repository at this point in the history
Signed-off-by: Bindea Cristian <[email protected]>
  • Loading branch information
bindea-cristian committed Apr 23, 2024
1 parent e7330be commit 1286d06
Show file tree
Hide file tree
Showing 5 changed files with 434 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ android*.sh
!CI/android/*
CI/kuiper/staging
CI/kuiper/scopy.AppDir
CI/appimage/staging
html/
build_arm64-v8a/
12 changes: 12 additions & 0 deletions CI/appimage/AppRun
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
set -e
SELF=$(readlink -f "$0")
HERE=${SELF%/*}

export QT_PLUGIN_PATH=$HERE/usr/plugins
export QT_QPA_PLATFORM_PLUGIN_PATH=$HERE/usr/plugins/platforms
export LD_LIBRARY_PATH=$HERE/usr/lib

ldd $HERE/usr/bin/scopy

exec $HERE/usr/bin/scopy
32 changes: 32 additions & 0 deletions CI/appimage/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#docker build -t cristianbindea/scopy2-ubuntu22 --build-arg QT_USER=<your_user> --build-arg QT_PASSWORD=<your_password> .

FROM ubuntu:20.04
SHELL ["/bin/bash", "-c"]

ARG USER=runner
ENV DEBIAN_FRONTEND=noninteractive

ENV TZ=Europe/Bucharest
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get -y upgrade && apt-get install -y apt-utils sudo git

RUN groupadd -g 1000 -r $USER && \
useradd -u 1000 -g 1000 --create-home -r $USER

#Change password
RUN echo "$USER:$USER" | chpasswd

#Make sudo passwordless
RUN echo "${USER} ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/90-$USER && \
usermod -aG sudo $USER && \
usermod -aG plugdev $USER

USER $USER
WORKDIR /home/${USER}
RUN git clone https://github.com/analogdevicesinc/scopy --branch appimage-scopy1
WORKDIR /home/${USER}/scopy

RUN ./CI/appimage/ubuntu_appimage_process.sh clone install_packages download_tools build_deps
WORKDIR /home/${USER}
# RUN rm -rf scopy

10 changes: 10 additions & 0 deletions CI/appimage/scopy.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Version=1.0
Icon=Scopy
Exec=scopy
Terminal=false
Type=Application
Categories=Science
Name=Scopy
GenericName=Oscilloscope
Comment=A software oscilloscope
Loading

0 comments on commit 1286d06

Please sign in to comment.