-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate_KS_file.sh
executable file
·41 lines (31 loc) · 1.38 KB
/
create_KS_file.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
#!/bin/bash
. common_functions
# This script is supposed to be run in the Mer SDK environment
checkMerSDK
echo "Generate and configure a kickstart file"
cd $ANDROID_ROOT
mkdir -p tmp
HA_REPO="repo --name=adaptation0-$DEVICE-@RELEASE@"
sed -e \
"s|^$HA_REPO.*$|$HA_REPO --baseurl=file://$ANDROID_ROOT/droid-local-repo/$DEVICE|" \
$ANDROID_ROOT/installroot/usr/share/kickstarts/Jolla-@RELEASE@-$DEVICE-@[email protected] \
> tmp/Jolla-@RELEASE@-$DEVICE-@[email protected]
# Don't take packages from Mer OBS repos
#MOBS_URI="http://repo.merproject.org/obs"
#HA_REPO="repo --name=adaptation0-$DEVICE-@RELEASE@"
#HA_REPO1="repo --name=adaptation1-$DEVICE-@RELEASE@ \
#--baseurl=$MOBS_URI/sailfishos:/devel:/hw:/mako/sailfish_latest_@ARCH@/"
#sed -i -e "/^$HA_REPO.*$/a$HA_REPO1" tmp/Jolla-@RELEASE@-$DEVICE-@[email protected]
# Add openrepos.net for warehouse client
HA_REPO="repo --name=adaptation0-$DEVICE-@RELEASE@"
OPENREPOS="repo --name=openrepos \
--baseurl=http://sailfish.openrepos.net/basil/personal/main/"
sed -i -e "/^$HA_REPO.*$/a$OPENREPOS" tmp/Jolla-@RELEASE@-$DEVICE-@[email protected]
sed -i -e "/^%packages/aharbour-warehouse" tmp/Jolla-@RELEASE@-$DEVICE-@[email protected]
# TODO: Enable 5 icons in a row in Homescreen
# /usr/share/lipstick-jolla-home-qt5/qml/launcher/LauncherGrid.qml
# property int column: 4 -> 5
echo "Add tilapia as new device"
rpm/helpers/add_new_device.sh
echo "Process all patterns"
rpm/helpers/process_patterns.sh