Remove console.log and it's ready to publish
parent
b049d5eed1
commit
6334fa7e98
4
Makefile
4
Makefile
|
@ -5,7 +5,7 @@ sdkpath:=$(HOME)/SailfishOS
|
||||||
sourcePath:=$(shell pwd)
|
sourcePath:=$(shell pwd)
|
||||||
dependencies=$(shell for file in `cat dependencies.txt`;do echo "-d "$${file};done;)
|
dependencies=$(shell for file in `cat dependencies.txt`;do echo "-d "$${file};done;)
|
||||||
arch:=armv7hl
|
arch:=armv7hl
|
||||||
version:=0.0.1
|
version:=0.4.0
|
||||||
iteration:=1
|
iteration:=1
|
||||||
rpmname:=$(Appname)-$(version)-$(iteration).$(arch).rpm
|
rpmname:=$(Appname)-$(version)-$(iteration).$(arch).rpm
|
||||||
ssh_user:=defaultuser
|
ssh_user:=defaultuser
|
||||||
|
@ -24,6 +24,7 @@ make-virt: build-tmp rpm-virt send-virt
|
||||||
build-tmp:
|
build-tmp:
|
||||||
mkdir -p $(temp)/usr/share/applications
|
mkdir -p $(temp)/usr/share/applications
|
||||||
mkdir -p $(temp)/usr/share/icons/hicolor/86x86/apps
|
mkdir -p $(temp)/usr/share/icons/hicolor/86x86/apps
|
||||||
|
mkdir -p $(temp)/usr/share/$(Appname)/src
|
||||||
mkdir -p $(temp)/usr/bin
|
mkdir -p $(temp)/usr/bin
|
||||||
cp -ar ./qml $(temp)/usr/share/$(Appname)
|
cp -ar ./qml $(temp)/usr/share/$(Appname)
|
||||||
cp -ar ./src/* $(temp)/usr/share/$(Appname)/src
|
cp -ar ./src/* $(temp)/usr/share/$(Appname)/src
|
||||||
|
@ -32,6 +33,7 @@ build-tmp:
|
||||||
install -m 755 ./dat/$(Appname).sh $(temp)/usr/bin/$(Appname)
|
install -m 755 ./dat/$(Appname).sh $(temp)/usr/bin/$(Appname)
|
||||||
|
|
||||||
rpm-virt: arch:=i686
|
rpm-virt: arch:=i686
|
||||||
|
rpm-virt: rpmname:=$(Appname)-$(version)-$(iteration).$(arch).rpm
|
||||||
rpm-virt: build-tmp
|
rpm-virt: build-tmp
|
||||||
cd $(temp);fpm -f -s dir -t rpm \
|
cd $(temp);fpm -f -s dir -t rpm \
|
||||||
--after-install $(sourcePath)/dat/upgradeScript.sh \
|
--after-install $(sourcePath)/dat/upgradeScript.sh \
|
||||||
|
|
|
@ -44,11 +44,9 @@ Page {
|
||||||
|
|
||||||
delegate: GridItem {
|
delegate: GridItem {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
console.log("clicked " + idCell + " " + activated)
|
|
||||||
activated = !activated
|
activated = !activated
|
||||||
iconEditor.corners[idCell] = activated
|
iconEditor.corners[idCell] = activated
|
||||||
py.importModule("main", function(){
|
py.importModule("main", function(){
|
||||||
console.log(typeof icon.source);
|
|
||||||
py.call("main.sailify", [iconEditor.attrs.Icon.toString().toString(), iconEditor.corners], function(result){
|
py.call("main.sailify", [iconEditor.attrs.Icon.toString().toString(), iconEditor.corners], function(result){
|
||||||
icon.source = result
|
icon.source = result
|
||||||
})
|
})
|
||||||
|
|
|
@ -3,6 +3,7 @@ import Sailfish.Silica 1.0
|
||||||
import io.thp.pyotherside 1.3
|
import io.thp.pyotherside 1.3
|
||||||
|
|
||||||
Page {
|
Page {
|
||||||
|
property alias mainList: mainList
|
||||||
SilicaFlickable {
|
SilicaFlickable {
|
||||||
id: mainList
|
id: mainList
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -12,6 +13,10 @@ Page {
|
||||||
text: "About"
|
text: "About"
|
||||||
onClicked: pageStack.push(Qt.resolvedUrl("About.qml"))
|
onClicked: pageStack.push(Qt.resolvedUrl("About.qml"))
|
||||||
}
|
}
|
||||||
|
MenuItem {
|
||||||
|
text: "Refresh"
|
||||||
|
onClicked: mainList.reload()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
PageHeader {
|
PageHeader {
|
||||||
|
|
Loading…
Reference in New Issue