-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrename_project.sh
More file actions
executable file
·19 lines (16 loc) · 866 Bytes
/
Copy pathrename_project.sh
File metadata and controls
executable file
·19 lines (16 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# renames the application
# -> just replace NEW_NAME and NEW_UNIQU_NAME with with valid names of you choice and you are set :)
#
# NOTE: value NEW_UNIQUE_NAME should be unique as not to clash with other
# unique Android application names
NEW_NAME="BarApp"
NEW_UNIQUE_NAME="foo.foomatic.${NEW_NAME}"
mv PySideExample.pro "${NEW_NAME}.pro"
sed -i "s/PySideExample/${NEW_NAME}/g" "${NEW_NAME}.pro"
sed -i "s/org.modrana.PySideExample/${NEW_UNIQUE_NAME}/g" main.h
sed -i "s/org.modrana.PySideExample/${NEW_UNIQUE_NAME}/g" android/src/org/kde/necessitas/origo/QtActivity.java
sed -i "s/org.modrana.PySideExample/${NEW_UNIQUE_NAME}/g" android/AndroidManifest.xml
sed -i "s/PySideExample/${NEW_NAME}/g" android/AndroidManifest.xml
sed -i "s/PySideExample/${NEW_NAME}/g" android/res/values/strings.xml
sed -i "s/PySideExample/${NEW_NAME}/g" android/build.xml