forked from 5l1v3r1/AnyDesk.AppImage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (41 loc) · 2.72 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# 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)
all: clean
mkdir --parents $(PWD)/build
mkdir --parents $(PWD)/build/AppDir
mkdir --parents $(PWD)/build/AppDir/anydesk
wget --output-document=$(PWD)/build/build.tar.gz https://download.anydesk.com/linux/anydesk-latest-amd64.tar.gz
tar -xvf $(PWD)/build/build.tar.gz -C $(PWD)/build/
wget --output-document=$(PWD)/build/build.rpm https://repo.almalinux.org/vault/8.4/AppStream/x86_64/os/Packages/gtk2-2.24.32-5.el8.x86_64.rpm
cd $(PWD)/build && rpm2cpio $(PWD)/build/build.rpm | cpio -idmv && cd ..
wget --output-document=$(PWD)/build/build.rpm https://repo.almalinux.org/vault/8.4/AppStream/x86_64/os/Packages/GConf2-3.2.6-22.el8.x86_64.rpm
cd $(PWD)/build && rpm2cpio $(PWD)/build/build.rpm | cpio -idmv && cd ..
wget --output-document=$(PWD)/build/build.rpm https://vault.centos.org/7.8.2003/os/x86_64/Packages/pango-1.42.4-4.el7_7.x86_64.rpm
cd $(PWD)/build && rpm2cpio $(PWD)/build/build.rpm | cpio -idmv && cd ..
wget --output-document=$(PWD)/build/build.rpm https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/p/pangox-compat-0.0.2-2.el7.x86_64.rpm
cd $(PWD)/build && rpm2cpio $(PWD)/build/build.rpm | cpio -idmv && cd ..
wget --output-document=$(PWD)/build/build.rpm https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/g/gtkglext-libs-1.2.0-21.el7.x86_64.rpm
cd $(PWD)/build && rpm2cpio $(PWD)/build/build.rpm | cpio -idmv && cd ..
wget --output-document=$(PWD)/build/build.rpm https://vault.centos.org/7.8.2003/os/x86_64/Packages/libthai-0.1.14-9.el7.x86_64.rpm
cd $(PWD)/build && rpm2cpio $(PWD)/build/build.rpm | cpio -idmv && cd ..
wget --output-document=$(PWD)/build/build.rpm https://rpmfind.net/linux/mageia/distrib/7/x86_64/media/core/release/lsb-release-2.0-54.mga7.noarch.rpm
cd $(PWD)/build && rpm2cpio $(PWD)/build/build.rpm | cpio -idmv && cd ..
cp --force --recursive $(PWD)/build/usr/* $(PWD)/build/AppDir/
cp --force --recursive $(PWD)/build/anydesk-*/* $(PWD)/build/AppDir/anydesk
cp --force --recursive $(PWD)/AppDir/* $(PWD)/build/AppDir
chmod +x $(PWD)/build/AppDir/AppRun
chmod +x $(PWD)/build/AppDir/*.desktop
export ARCH=x86_64 && $(PWD)/bin/appimagetool.AppImage $(PWD)/build/AppDir $(PWD)/AnyDesk.AppImage
chmod +x $(PWD)/AnyDesk.AppImage
clean:
rm -rf $(PWD)/build