Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWoroschilow committed Apr 1, 2022
0 parents commit 006d007
Show file tree
Hide file tree
Showing 7 changed files with 202 additions and 0 deletions.
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 2020 Alex Woroschilow ([email protected])
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
PWD := $(shell pwd)

DOCKER_COMPOSE:=docker-compose -f $(PWD)/docker-compose.yaml

.EXPORT_ALL_VARIABLES:
CID=$(shell basename $(PWD) | tr -cd '[:alnum:]' | tr A-Z a-z)
UID=$(shell id -u)
GID=$(shell id -g)

.PHONY: all


all: clean
$(DOCKER_COMPOSE) stop
$(DOCKER_COMPOSE) up --build --no-start
$(DOCKER_COMPOSE) up -d "appimage"
$(DOCKER_COMPOSE) run "appimage" make all
$(DOCKER_COMPOSE) run "appimage" chown -R $(UID):$(GID) ./
$(DOCKER_COMPOSE) stop

clean:
$(DOCKER_COMPOSE) up -d "appimage"
$(DOCKER_COMPOSE) run "appimage" make clean
$(DOCKER_COMPOSE) rm --stop --force

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Slimjet.AppImage
60 changes: 60 additions & 0 deletions app/AppDir/Slimjet.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
[Desktop Entry]
Version=1.0
Name=FlashPeak Slimjet
Name[en_US]=FlashPeak Slimjet
Comment=Access the Internet
Comment[ar]=الدخول إلى الإنترنت
Comment[bg]=Достъп до интернет
Comment[bn]=ইন্টারনেটটি অ্যাক্সেস করুন
Comment[ca]=Accedeix a Internet
Comment[cs]=Přístup k internetu
Comment[da]=Få adgang til internettet
Comment[de]=Internetzugriff
Comment[el]=Πρόσβαση στο Διαδίκτυο
Comment[en_GB]=Access the Internet
Comment[es]=Accede a Internet.
Comment[et]=Pääs Internetti
Comment[fi]=Käytä internetiä
Comment[fil]=I-access ang Internet
Comment[fr]=Accéder à Internet
Comment[gu]=ઇંટરનેટ ઍક્સેસ કરો
Comment[he]=גישה אל האינטרנט
Comment[hi]=इंटरनेट तक पहुंच स्थापित करें
Comment[hr]=Pristup Internetu
Comment[hu]=Internetelérés
Comment[id]=Akses Internet
Comment[it]=Accesso a Internet
Comment[ja]=インターネットにアクセス
Comment[kn]=ಇಂಟರ್ನೆಟ್ ಅನ್ನು ಪ್ರವೇಶಿಸಿ
Comment[ko]=인터넷 연결
Comment[lt]=Interneto prieiga
Comment[lv]=Piekļūt internetam
Comment[ml]=ഇന്റര്‍‌നെറ്റ് ആക്‌സസ് ചെയ്യുക
Comment[mr]=इंटरनेटमध्ये प्रवेश करा
Comment[nb]=Gå til Internett
Comment[nl]=Verbinding maken met internet
Comment[or]=ଇଣ୍ଟର୍ନେଟ୍ ପ୍ରବେଶ କରନ୍ତୁ
Comment[pl]=Skorzystaj z internetu
Comment[pt]=Aceder à Internet
Comment[pt_BR]=Acessar a internet
Comment[ro]=Accesaţi Internetul
Comment[ru]=Доступ в Интернет
Comment[sk]=Prístup do siete Internet
Comment[sl]=Dostop do interneta
Comment[sr]=Приступите Интернету
Comment[sv]=Gå ut på Internet
Comment[ta]=இணையத்தை அணுகுதல்
Comment[te]=ఇంటర్నెట్‌ను ఆక్సెస్ చెయ్యండి
Comment[th]=เข้าถึงอินเทอร์เน็ต
Comment[tr]=İnternet'e erişin
Comment[uk]=Доступ до Інтернету
Comment[vi]=Truy cập Internet
Comment[zh_CN]=访问互联网
Comment[zh_HK]=連線到網際網路
Comment[zh_TW]=連線到網際網路
Exec=AppRun %U
Terminal=false
Icon=slimjet
Type=Application
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
Binary file added app/AppDir/slimjet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions app/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Copyright 2020 Alex Woroschilow ([email protected])
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
PWD:=$(shell pwd)

.PHONY: all

all: clean init

mkdir --parents $(PWD)/build/Boilerplate.AppDir/slimjet
$(PWD)/bin/Apprepo.AppImage --destination=$(PWD)/build appdir boilerplate \
libgdk-pixbuf2.0-0 libatk1.0-0 libatk-bridge2.0-0 libgtk2.0-0 \
libreadline8 at-spi2-core libpango-1.0-0 libselinux1

wget --output-document=$(PWD)/build/build.deb "https://www.slimjet.com/download.php?version=lnx64&type=deb&beta=&server="
dpkg -x $(PWD)/build/build.deb $(PWD)/build

cp -r $(PWD)/build/opt/slimjet/* $(PWD)/build/Boilerplate.AppDir/slimjet

echo '' >> $(PWD)/build/Boilerplate.AppDir/AppRun
echo '' >> $(PWD)/build/Boilerplate.AppDir/AppRun
echo 'LD_LIBRARY_PATH=$${LD_LIBRARY_PATH}:$${APPDIR}/slimjet' >> $(PWD)/build/Boilerplate.AppDir/AppRun
echo 'export LD_LIBRARY_PATH=$${LD_LIBRARY_PATH}' >> $(PWD)/build/Boilerplate.AppDir/AppRun
echo '' >> $(PWD)/build/Boilerplate.AppDir/AppRun
echo '' >> $(PWD)/build/Boilerplate.AppDir/AppRun
echo 'exec $${APPDIR}/slimjet/flashpeak-slimjet "$${@}"' >> $(PWD)/build/Boilerplate.AppDir/AppRun

rm --force $(PWD)/build/Boilerplate.AppDir/*.svg || true
rm --force $(PWD)/build/Boilerplate.AppDir/*.desktop || true
rm --force $(PWD)/build/Boilerplate.AppDir/*.png || true

cp --force $(PWD)/AppDir/*.png $(PWD)/build/Boilerplate.AppDir/ || true
cp --force $(PWD)/AppDir/*.desktop $(PWD)/build/Boilerplate.AppDir/ || true
cp --force $(PWD)/AppDir/*.svg $(PWD)/build/Boilerplate.AppDir/ || true

export ARCH=x86_64 && $(PWD)/bin/appimagetool.AppImage $(PWD)/build/Boilerplate.AppDir $(PWD)/Slimjet.AppImage
chmod +x $(PWD)/Slimjet.AppImage

init:
mkdir --parents $(PWD)/bin

wget https://apprepo.de/appimage/download/apprepo \
--output-document=$(PWD)/bin/Apprepo.AppImage
chmod +x $(PWD)/bin/Apprepo.AppImage

wget https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-x86_64.AppImage \
--output-document=$(PWD)/bin/appimagetool.AppImage
chmod +x $(PWD)/bin/appimagetool.AppImage

clean:
rm -rf $(PWD)/*.AppImage
rm -rf $(PWD)/bin/*
rm -rf $(PWD)/build
20 changes: 20 additions & 0 deletions app/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2020 Alex Woroschilow ([email protected])
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
FROM ubuntu:20.04

ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

RUN apt-get -y update && apt-get -y install apt-utils
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get install -y kmod make gcc wget
RUN apt-get install -y file curl wget unzip tar
RUN apt-get install -y fuse
24 changes: 24 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2020 Alex Woroschilow ([email protected])
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
version: '3.7'

services:
appimage:
cap_drop:
- SYS_ADMIN
container_name: ${CID}
working_dir: /root
privileged: true
build:
context: app/docker
volumes:
- ./app:/root:cached

0 comments on commit 006d007

Please sign in to comment.