Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
U
unibuild
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
unibuild
Commits
55693f2b
Kaydet (Commit)
55693f2b
authored
Tem 19, 2020
tarafından
sulincix
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
appimage support
üst
24023e2f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
5 deletions
+54
-5
example
example/example
+7
-5
appimage
target/appimage
+46
-0
unibuild.sh
unibuild.sh
+1
-0
No files found.
example/example
Dosyayı görüntüle @
55693f2b
...
@@ -2,23 +2,25 @@
...
@@ -2,23 +2,25 @@
name
=
"example"
name
=
"example"
version
=
"1.0"
version
=
"1.0"
summary
=
"example package"
summary
=
"example package"
executable
=
"hello"
description
=
"example package for build test"
description
=
"example package for build test"
builddepends
=(
"gcc"
"aaaa"
)
builddepends
=(
"gcc"
)
depends
=(
"hello"
)
depends
=(
"hello"
)
license
=
"gplv3"
license
=
"gplv3"
release
=
"1"
release
=
"1"
#source=(http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz)
#source=(http://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz)
_setup
(){
_setup
(){
mkdir
-p
$INSTALLDIR
/hello
/
mkdir
-p
./bin
/
echo
"
setup"
>
$INSTALLDIR
/hello/setup
echo
"
echo hello world"
>
./bin/hello
}
}
_build
(){
_build
(){
echo
"build"
>
$INSTALLDIR
/hello-build
chmod
+x ./bin/hello
}
}
_install
(){
_install
(){
echo
"install"
>
$INSTALLDIR
/hello-install
mkdir
-p
$INSTALLDIR
/bin/
install
./bin/hello
$INSTALLDIR
/bin/hello
}
}
target/appimage
0 → 100644
Dosyayı görüntüle @
55693f2b
#!/bin/bash
_write_AppRun
(){
echo
"#!/bin/sh"
echo
'SELF=$(readlink -f "$0")'
echo
'HERE=${SELF%/*}'
echo
'export PATH="${HERE}/usr/bin/:${HERE}/usr/sbin/:${HERE}/usr/games/:${HERE}/bin/:${HERE}/sbin/${PATH:+:$PATH}"'
echo
'export LD_LIBRARY_PATH="${HERE}/usr/lib/:${HERE}/usr/lib/i386-linux-gnu/:${HERE}/usr/lib/x86_64-linux-gnu/:${HERE}/usr/lib32/:${HERE}/usr/lib64/:${HERE}/lib/:${HERE}/lib/i386-linux-gnu/:${HERE}/lib/x86_64-linux-gnu/:${HERE}/lib32/:${HERE}/lib64/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"'
echo
'export PYTHONPATH="${HERE}/usr/share/pyshared/${PYTHONPATH:+:$PYTHONPATH}"'
echo
'export XDG_DATA_DIRS="${HERE}/usr/share/${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}"'
echo
'export PERLLIB="${HERE}/usr/share/perl5/:${HERE}/usr/lib/perl5/${PERLLIB:+:$PERLLIB}"'
echo
'export GSETTINGS_SCHEMA_DIR="${HERE}/usr/share/glib-2.0/schemas/${GSETTINGS_SCHEMA_DIR:+:$GSETTINGS_SCHEMA_DIR}"'
echo
'export QT_PLUGIN_PATH="${HERE}/usr/lib/qt4/plugins/:${HERE}/usr/lib/i386-linux-gnu/qt4/plugins/:${HERE}/usr/lib/x86_64-linux-gnu/qt4/plugins/:${HERE}/usr/lib32/qt4/plugins/:${HERE}/usr/lib64/qt4/plugins/:${HERE}/usr/lib/qt5/plugins/:${HERE}/usr/lib/i386-linux-gnu/qt5/plugins/:${HERE}/usr/lib/x86_64-linux-gnu/qt5/plugins/:${HERE}/usr/lib32/qt5/plugins/:${HERE}/usr/lib64/qt5/plugins/${QT_PLUGIN_PATH:+:$QT_PLUGIN_PATH}"'
echo
'EXEC=$(grep -e "^Exec=.*" "${HERE}"/*.desktop | head -n 1 | cut -d "=" -f 2 | cut -d " " -f 1)'
echo
'exec "${EXEC}" "$@"'
}
_write_desktop
(){
echo
"[Desktop Entry]"
echo
"Type=Application"
echo
"Name=
$name
"
[
"
$executable
"
==
""
]
&&
export
executable
=
$name
echo
"Exec=
$executable
"
echo
"Comment=
$summary
"
[
"
$icon
"
==
""
]
export
icon
=
$name
echo
"Icon=
$name
"
if
[
"
$categories
"
==
""
]
;
then
echo
"Categories=
$categories
"
fi
echo
"Terminal=false"
}
_create_metadata
(){
cd
$PKGDIR
_write_AppRun
>
$PKGDIR
/AppRun
chmod
+x
$PKGDIR
/AppRun
_write_desktop
>
$PKGDIR
/
$name
.desktop
touch
$PKGDIR
/
$name
.png
}
_package
(){
# checking appimagekit
[
-f
~/.appimagekit
]
||
wget
-c
https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-
$(
uname
-m
)
.AppImage
-O
~/.appimagekit
cp
-prfv
$INSTALLDIR
/
*
$PKGDIR
/
cd
$CURDIR
ARCH
=
$(
uname
-m
)
~/.appimagekit
$PKGDIR
}
unibuild.sh
Dosyayı görüntüle @
55693f2b
...
@@ -20,3 +20,4 @@ cd $WORKDIR
...
@@ -20,3 +20,4 @@ cd $WORKDIR
_create_metadata
_create_metadata
cd
$WORKDIR
cd
$WORKDIR
_package
_package
rm
-rf
$WORKDIR
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment