Deb packaging for noobs
m (New page: '''Create correct .deb package for N9''' '''on your linux PC''' (and you can use it for OBS) Read some info: * [http://harmattan-dev.nokia.com/docs/library/html/guide/html/Developer_Libra...) |
thedead1440 (Talk | contribs) |
||
(One intermediate revision not shown) | |||
Line 9: | Line 9: | ||
1. Download [http://harmattan-dev.nokia.com/platform-sdk/ Harmattan Platform SDK installer] ([http://harmattan-dev.nokia.com/stable/harmattan/harmattan-sdk-setup.py direct link]) | 1. Download [http://harmattan-dev.nokia.com/platform-sdk/ Harmattan Platform SDK installer] ([http://harmattan-dev.nokia.com/stable/harmattan/harmattan-sdk-setup.py direct link]) | ||
+ | |||
2. Install it (scratchbox) on your Linux PC. To provide executable permission to the script, enter the following command: | 2. Install it (scratchbox) on your Linux PC. To provide executable permission to the script, enter the following command: | ||
'''$ chmod +x harmattan-sdk-setup.py''' | '''$ chmod +x harmattan-sdk-setup.py''' | ||
+ | |||
3. To run the script with root permission, enter the following command: | 3. To run the script with root permission, enter the following command: | ||
Line 17: | Line 19: | ||
'''$ sudo ./harmattan-sdk-setup.py admininstall''' | '''$ sudo ./harmattan-sdk-setup.py admininstall''' | ||
* Installation process can take a few hours… | * Installation process can take a few hours… | ||
+ | |||
4. When Scratchbox installed, REBOOT your PC and go to: | 4. When Scratchbox installed, REBOOT your PC and go to: | ||
'''/scratchbox/users/YOUR_NAME/home/YOUR_NAME''' | '''/scratchbox/users/YOUR_NAME/home/YOUR_NAME''' | ||
+ | |||
5. Create here a folder for your package, for example my: '''n9-qtweakall''' Open this folder. | 5. Create here a folder for your package, for example my: '''n9-qtweakall''' Open this folder. | ||
Line 31: | Line 35: | ||
'''/scratchbox/users/schturman/home/schturman/n9-qtweakall''' | '''/scratchbox/users/schturman/home/schturman/n9-qtweakall''' | ||
+ | |||
6. Go to: | 6. Go to: | ||
Line 36: | Line 41: | ||
and delete file named: '''copy_folders_here_and_delete_this_file''' | and delete file named: '''copy_folders_here_and_delete_this_file''' | ||
+ | |||
7. Copy your folders here, for example '''/opt/your_app_name''' etc… | 7. Copy your folders here, for example '''/opt/your_app_name''' etc… | ||
+ | |||
8. Go back to '''/debian''' folder. You can see a few files that you need to edit before each packaging. Just open them with editor and edit like your need… | 8. Go back to '''/debian''' folder. You can see a few files that you need to edit before each packaging. Just open them with editor and edit like your need… | ||
+ | |||
9. Open terminal and write: '''scratchbox''' , then press enter | 9. Open terminal and write: '''scratchbox''' , then press enter | ||
+ | |||
10. You will see this message: | 10. You will see this message: | ||
+ | |||
'''Welcome to Scratchbox, the cross-compilation toolkit! | '''Welcome to Scratchbox, the cross-compilation toolkit! | ||
Line 52: | Line 62: | ||
'''[sbox-HARMATTAN_X86: ~] >''' | '''[sbox-HARMATTAN_X86: ~] >''' | ||
+ | |||
11. To change the target architecture to ARMEL, enter the following command: | 11. To change the target architecture to ARMEL, enter the following command: | ||
Line 58: | Line 69: | ||
And now you will see: '''[sbox-HARMATTAN_ARMEL: ~] >''' | And now you will see: '''[sbox-HARMATTAN_ARMEL: ~] >''' | ||
+ | |||
12. Now you can package your application: | 12. Now you can package your application: | ||
Line 72: | Line 84: | ||
'''dpkg-buildpackage''' | '''dpkg-buildpackage''' | ||
+ | |||
13. When packaging is finished you again will see this line: | 13. When packaging is finished you again will see this line: | ||
'''[sbox-HARMATTAN_ARMEL: ~/n9-qtweakall] >''' | '''[sbox-HARMATTAN_ARMEL: ~/n9-qtweakall] >''' | ||
+ | |||
14. For EXIT from scratchbox, just write: '''exit''' , then press enter. | 14. For EXIT from scratchbox, just write: '''exit''' , then press enter. | ||
+ | |||
15. You will find the packaged files in: | 15. You will find the packaged files in: | ||
'''/scratchbox/users/YOUR_NAME/home/YOUR_NAME''' | '''/scratchbox/users/YOUR_NAME/home/YOUR_NAME''' | ||
+ | |||
16. You will see 4 files: | 16. You will see 4 files: | ||
* '''.deb''' , '''.changes''' , '''.tar.gz''' , '''.dsc''' | * '''.deb''' , '''.changes''' , '''.tar.gz''' , '''.dsc''' | ||
+ | |||
17. The 3 last files you can use on OBS (apps.formeego.org) | 17. The 3 last files you can use on OBS (apps.formeego.org) | ||
+ | |||
I used Ubuntu like second OS on my old netbook (Acer Aspire ONE). Sorry for my bad English :) | I used Ubuntu like second OS on my old netbook (Acer Aspire ONE). Sorry for my bad English :) |
Latest revision as of 10:27, 5 September 2012
Create correct .deb package for N9 on your linux PC (and you can use it for OBS)
Read some info:
- Installing Harmattan Platform SDK
- Using Harmattan Platform SDK
- Packaging your application with Harmattan Platform SDK
1. Download Harmattan Platform SDK installer (direct link)
2. Install it (scratchbox) on your Linux PC. To provide executable permission to the script, enter the following command:
$ chmod +x harmattan-sdk-setup.py
3. To run the script with root permission, enter the following command:
$ sudo ./harmattan-sdk-setup.py admininstall
- Installation process can take a few hours…
4. When Scratchbox installed, REBOOT your PC and go to:
/scratchbox/users/YOUR_NAME/home/YOUR_NAME
5. Create here a folder for your package, for example my: n9-qtweakall Open this folder.
Example:
/scratchbox/users/schturman/home/schturman/n9-qtweakall
Download this package: Create_correct_DEB_file_on_Ubuntu.zip and extract it (debian folder) to your package folder:
/scratchbox/users/schturman/home/schturman/n9-qtweakall
6. Go to:
/scratchbox/users/schturman/home/schturman/n9-qtweakall/debian/data
and delete file named: copy_folders_here_and_delete_this_file
7. Copy your folders here, for example /opt/your_app_name etc…
8. Go back to /debian folder. You can see a few files that you need to edit before each packaging. Just open them with editor and edit like your need…
9. Open terminal and write: scratchbox , then press enter
10. You will see this message:
Welcome to Scratchbox, the cross-compilation toolkit!
Use 'sb-menu' to change your compilation target.
See /scratchbox/doc/ for documentation.
[sbox-HARMATTAN_X86: ~] >
11. To change the target architecture to ARMEL, enter the following command:
sb-conf se HARMATTAN_ARMEL
And now you will see: [sbox-HARMATTAN_ARMEL: ~] >
12. Now you can package your application:
- Go to your package folder:
cd /home/schturman/n9-qtweakall
and you will see:
[sbox-HARMATTAN_ARMEL: ~/n9-qtweakall] >
- For packaging write:
dpkg-buildpackage
13. When packaging is finished you again will see this line:
[sbox-HARMATTAN_ARMEL: ~/n9-qtweakall] >
14. For EXIT from scratchbox, just write: exit , then press enter.
15. You will find the packaged files in:
/scratchbox/users/YOUR_NAME/home/YOUR_NAME
16. You will see 4 files:
- .deb , .changes , .tar.gz , .dsc
17. The 3 last files you can use on OBS (apps.formeego.org)
I used Ubuntu like second OS on my old netbook (Acer Aspire ONE). Sorry for my bad English :)
Big thanks to CODeRUS for files and help!
- This page was last modified on 5 September 2012, at 10:27.
- This page has been accessed 3,028 times.