![]() |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
I may be due to wipe and refresh my Jolla, I have edited lots of qml files all over the system, including in root, so maybe things are a bit messed up!, oh well, all part of the fun!, thanks again for your help :) As per NielDK's suggestion, I may set up rpmbuild in Home and give that way a try. Regards, |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Hi to all. I found a way to create binary file from your script. For this you need SHC tool. I already created .rpm file for easy installation on Jolla, but I don't know if I can share it (asked author, waiting for answer) :confused:. Anyway, I decided to post here this instruction :D. PDF instruction you can download here: https://dl.dropboxusercontent.com/u/..._for_Jolla.pdf SHC – generic shell script compiler (for Jolla phone) · Source: http://www.datsi.fi.upm.es/~frosal/ · Like author (Francisco Rosales) say: Quote:
1. Download shc archive from http://www.datsi.fi.upm.es/~frosal/ (direct link) 2. Extract it and go to this directory (shc-3.8.9) Code:
tar xvfz shc-3.8.9.tgz Code:
gcc shc-3.8.9.c -o shc 5. For create binary from your script: a. cd to directory with your script and run: Code:
shc -f myscript.sh Code:
myscript.sh Option #2: 1. Download shc archive from http://www.datsi.fi.upm.es/~frosal/ (direct link) 2. Extract it and go to this directory (shc-3.8.9) Code:
tar xvfz shc-3.8.9.tgz 3. Create "shc" binary file (make & gcc package needed = pkcon install make gcc): Code:
cd /home/nemo/Downloads/shc-3.8.9 4. Put the created file "shc" to /bin with permission: 0755 5. For create binary from your script: a. cd to directory with your script and run: Code:
shc -f myscript.sh Code:
myscript.sh 6. Put your binary file ("mybinary") where it should be and give him a right permission. --------------------------------------------------------------------------- For quick and easy convert of a few scripts, you can use this script: Code:
#!/bin/bash
Code:
cd /path/to/scripts_dir
Schturman (03.02.2015) |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Peoples inventing new things just not to start learning real programming. It's always easier to say: "I'm not a programmer, i just know how to write some scripts". Sad story :(
|
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
And yes, it's more easy for me.. If I have time like you, probably I was going to learn programming instead to write simple scripts, but most of the time I see my PC only at night for 1-2 hours max.. And you don't need every time again to try to humiliate me. |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
It's not about you, it's about shc. Peoples wasting time for "programming simulation" instead of using real programming languages. Scripts are okay for one-time job. I personally can't understand it. Having two academic hours per day is enough for everybody to start learning any programming language. But it's personal decision of everybody.
|
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
|
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
As i said it just my personal optinion. Using shc is okay for "hiding" script code. What the purpose of shc in sailfish?
|
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
When found it, was thinking it's nice to learn for myself converting script to binary. It's easy and fun, for me at least. That's all.. |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
Quote:
It is up to us choose the best programming language for each task, each preference /style we have. |
Re: [GUIDE for noobs] RPM packaging directly on your Jolla phone.
I have nothing against scripting languages, I fairly often still write shellscripts. And make is a kind of scripting language, too.
And what about javascript, which is really ECMAscript and has 'script' even in the name of the language :D However, using techniques that hide your scripts from inspection and modification are pretty questionable IMHO. Just as distributing any kind of binary without sources, I feel it is a bad practice indeed. :mad: |
All times are GMT. The time now is 08:10. |
vBulletin® Version 3.8.8