error building lomiri calculator app
-
basically i want to change the GUI of the default calculator app.
So I
1 . Downloaded the app src from gitlab.
2. started changing qml files
3. built it and it created arm64 .click package but surprisingly the .click package size was only 408KB .
4. i transferred the click package to my phone double tapped on the file and installed it using open store option as it was the only option showing up
5. But it was the default app instead of my own customized app.
default app version was 4.0.1 calculator.ubports_4.0.1_arm64.click and my app was also built with the same filename as the default.what could be the issue ?
please advise
thanks
-
@nibzy26 To publish and launch your app to your device, just run
clickable
, you can let the default builder that was used and aso on manifest.
When modifying a core app, one need to upgrade the version in manifest file -
@nibzy26 said in error building lomiri calculator app:
I am trying clickable --arch=arm64
but the error says
he "pure-qml-cmake" builder needs architecture "all", but "arm64" was specifiedAs a QML only app the Calculator is in fact architecture independent. You didn't need to specify any arch. The same app that built to your desktop, would work on your phone
But follow @lduboeuf's advice to get the app onto your device with clickable. -
@ arubis @lduboeuf Thanks
with settings left to default I ran clickable and it did install and launch app on the phone but it is still the default app launching,
I cant see my modifications at all.
which manifest file I need to update and specify my own version.
there are manifest files at few places in the app .
There is manifest.json.in file in root directory with contents{
"name": "calculator.ubports",
"architecture": "arm64",
"description": "Powerful and easy to use calculator",
"framework": "ubuntu-sdk-20.04",
"hooks": {
"calculator": {
"apparmor": "@APP_HARDCODE@.apparmor",
"desktop": "@CMAKE_INSTALL_DATADIR@/applications/lomiri-calculator-app.desktop"
}
},
"maintainer": "UBports dev@ubports.com",
"title": "@APP_NAME@",
"icon": "@ICON@",
"version": "@PROJECT_VERSION@",
"migrations": {
"old-name": "com.ubuntu.calculator"
},
"x-test": {
"autopilot": "@AUTOPILOT_DIR@"
}
} -
@nibzy26 said in error building lomiri calculator app:
@ arubis @lduboeuf Thanks
with settings left to default I ran clickable and it did install and launch app on the phone but it is still the default app launching,
I cant see my modifications at all.
which manifest file I need to update and specify my own version.
there are manifest files at few places in the app .
There is manifest.json.in file in root directory with contents{
"name": "calculator.ubports",
"architecture": "arm64",
"description": "Powerful and easy to use calculator",
"framework": "ubuntu-sdk-20.04",
"hooks": {
"calculator": {
"apparmor": "@APP_HARDCODE@.apparmor",
"desktop": "@CMAKE_INSTALL_DATADIR@/applications/lomiri-calculator-app.desktop"
}
},
"maintainer": "UBports dev@ubports.com",
"title": "@APP_NAME@",
"icon": "@ICON@",
"version": "@PROJECT_VERSION@",
"migrations": {
"old-name": "com.ubuntu.calculator"
},
"x-test": {
"autopilot": "@AUTOPILOT_DIR@"
}
}the version is set according to a variable, that is probably set in the CMakeLists.txt ( search for PROJECT_VERSION ), just increment the last digit.
There is only one Manifest file, maybe you didn't noticed there is the source folder and the build folder. -
@lduboeuf Thanks
I did exactly what you said but before i saw your answer
Its working fine now Thanks
Does it also mean that I can share this newly built click package to my friends who can install it on their phone by just double taping it and selecting openstore option ?
This way it worked for me -
@nibzy26 said in error building lomiri calculator app:
@lduboeuf Thanks
I did exactly what you said but before i saw your answer
Its working fine now Thanks
Does it also mean that I can share this newly built click package to my friends who can install it on their phone by just double taping it and selecting openstore option ?
This way it worked for meSure it will work.
-
@nibzy26 said in error building lomiri calculator app:
Does it also mean that I can share this newly built click package to my friends who can install it on their phone by just double taping it and selecting openstore option ?
This would work indeed. But if these changes are not something you plan to contribute back upstream, or which you think will not be accepted even if you did, then you might consider making a hard fork and the name of the app so that it is clear that it is something different than the preinstalled one.
-
@arubislander Thanks
seems like every step is a new task.
Anyway I created my own icon png and named it as lomiri-calculator-app.png and deleted the original file.
Then i changed version in CMakeList.txt , to 4.0.3
installed it but the app icon is still the default one.
Do I have to do additional steps to show my own app icon ?
2. SO everytime I make a small change I have to increment the version in the CMakeList.txt file ??Please advise
Thanks
-
@nibzy26 said in error building lomiri calculator app:
@arubislander Thanks
seems like every step is a new task.
Anyway I created my own icon png and named it as lomiri-calculator-app.png and deleted the original file.
Then i changed version in CMakeList.txt , to 4.0.3
installed it but the app icon is still the default one.
Do I have to do additional steps to show my own app icon ?
2. SO everytime I make a small change I have to increment the version in the CMakeList.txt file ??Please advise
Thanks
humm, no need to update version each time.
does this image have the same name than in the desktop file ( see Icon key iirc)