Editing Deb packaging for noobs

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
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 19: Line 17:
'''$ 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 35: Line 31:
'''/scratchbox/users/schturman/home/schturman/n9-qtweakall'''
'''/scratchbox/users/schturman/home/schturman/n9-qtweakall'''
-
 
6. Go to:
6. Go to:
Line 41: Line 36:
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:
Line 69: Line 60:
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 84: Line 74:
   
   
'''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 :)

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)