-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathmake_deb.sh
executable file
·43 lines (31 loc) · 1.34 KB
/
make_deb.sh
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
#!/bin/sh
# This script will create a deb package for Steam-Metadata-Editor
packageVersion=$(printf "1.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
# Create file structure
mkdir -pv packaging/DEBIAN
mkdir -pv packaging/usr/share/licenses/steam-metadata-editor
mkdir -pv packaging/usr/share/pixmaps/steam-metadata-editor
mkdir -pv packaging/usr/share/applications
mkdir -pv packaging/usr/share/doc/steam-metadata-editor
mkdir -pv packaging/opt/sme
mkdir -pv packaging/usr/bin
# Copy files to corresponding directories
cp -vf LICENSE packaging/usr/share/licenses/steam-metadata-editor
cp -vf img/steam-metadata-editor.png packaging/usr/share/pixmaps/steam-metadata-editor
cp -vf steam-metadata-editor.desktop packaging/usr/share/applications
cp -vf README.md packaging/usr/share/doc/steam-metadata-editor
cp -vf steammetadataeditor packaging/usr/bin
cp -vfr src/* packaging/opt/sme
# Create control file
echo "Package: steam-metadata-editor-git
Version: ${packageVersion}
Architecture: all
Maintainer: tralph3
Depends: python3-tk,python3 (>=3.6)
Priority: optional
Homepage: https://github.com/tralph3/Steam-Metadata-Editor
Description: An easy to use GUI that edits the metadata of your Steam Apps" > packaging/DEBIAN/control
# Build the package
dpkg-deb --build packaging
# Rename the package
mv packaging.deb Steam-Metadata-Editor.deb