xSellize: How to make or compile a DEB in Windows - xSellize

Jump to content




Remove all advertisements.
  • (8 Pages) +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

How to make or compile a DEB in Windows

#1
User is offline   CaseyVGC 

  • Repo Guy from 2010
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Staff
  • Posts: 1036
  • Joined: 05-February 09
Overview:

You want release mods, hacks, etc really easy. Well packaging the hack makes it installing the hack very easy for the end-user without messing up permissions or other problems.


Tools:

iPhone or iPod touch

SSH (OpenSSH installed on device)

WinSCP (4.2.5 or higher)



1. Setup

First of all you would want to make a folder on your desktop. For this tutorial "X" is being used as a folder.


2. Control File

You will need a control file so you are able to package the DEB and for it to be viewable in Cydia/Rock.


To do this make a folder called "DEBIAN" (ALL CAPS) inside the folder "X".

Inside of the folder DEBIAN, make a file called "control" all lowercase and without an extension.


Here is a brief description of the fields in a control file

You need to add the below inside your control file except with your information. Make sure you add an extra space at the bottom of the control file


Package: com.yourcompany.yourapp

Name: YourAppNameHere

Version: Number

Architecture: iphoneos-arm

Description: Small Desc. about your app.

Homepage: Your Website

Maintainer: YourName <YourEmail>

Author: YourName

Sponsor: YourWebSiteName <Website URL>

Section: System



Here is one of my own control file I use in Advanced Preferences



Package: com.csdev.advpreferences2

Name: Advanced Preferences 2

Version: B3-2

Architecture: iphoneos-arm

Description: This hack will give you more settings and tweaks. 

Homepage: http://www.csdev.2x.nu

Maintainer: CS Dev <csdev14@gmail.com>

Author: CS Dev

Sponsor: CS Dev <http://www.csdev.2x.nu>

Section: System





3. File Structure

Inside your "X" folder, it's going to be like the iPhone File System. Like if you want to add a file to the root partition, just put the file in "X".


A. Application Structure

To install apps with DEBs, inside of "X", make a folder called "Applications". Then inside of Applications, make your app folder (EX: Cydia.app)


B. Theme Structure

To install themes wth DEBs, inside of "X", make a folder called "Library". Then inside of Libary, make another folder called "Themes" . After that inside of themes make your theme folder (EX: Cydia.theme)


Add your files using the structure above


4. WinSCP and SSH.


Open up WinSCP and connect to your Device. Navigate on your Device to

/var/root



Copy the X Folder to your device. File Structure should be below

/var/root/X



Inside the X Folder change the permissions of the DEBIAN folder and its files to 755

Navigate to var/root/ and open up the terminal im WinSCP. Do this by clicking the black box in one of the toolbars.


5. Terminal


Inside of Terminal type the following command in the "Enter Command" Box.

dpkg -b X




It will pop-up some error and this is okay.


The DEB file will be located in var/root/

var/root/X.deb

24


#Ads
User is online x-bot

  • Ad-Bot
  • Group:x-bot




#2
User is offline   jima6636 

  • Senior Member
  • PipPipPipPipPipPipPip
  • Group: +Contributor
  • Posts: 313
  • Joined: 08-September 08
Very cool I'll have to try this
Posted Image

Posted Image Posted Image
0

#3
User is offline   waye2 

  • Senior Member
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 156
  • Joined: 22-April 09
thanks really good
0

#4
User is offline   yan93 

  • Senior Member
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 223
  • Joined: 11-May 09
hi all, i tried to make a deb of a random theme but it didnt work.

could u check the theme folders and tell me where is the mistake?


heres the download http://www.megaupload.com/?d=9AHOQ6OO


sorry for my english
0

#5
User is offline   schnedi 

  • Pwned
  • PipPipPipPipPipPipPipPipPipPip
  • Group: +Contributor
  • Posts: 1490
  • Joined: 10-November 08
yan93

name theme/Library/Themes
..................DEBIAN/control



sorry ik on my iphone i couldnt what you posted file desactivated
0

#6
User is offline   yan93 

  • Senior Member
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 223
  • Joined: 11-May 09
i have these folders

mytheme > DEBIAN > control
.............. > Library > Themes > mytheme.theme > Bundles / wallpaper / lockbackground / etc....

thats ok? cause it doesnt work..
0

#7
User is offline   schnedi 

  • Pwned
  • PipPipPipPipPipPipPipPipPipPip
  • Group: +Contributor
  • Posts: 1490
  • Joined: 10-November 08

yan93 said:

i have these folders

mytheme > DEBIAN > control
.............. > Library > Themes > mytheme.theme > Bundles / wallpaper / lockbackground / etc....

thats ok? cause it doesnt work..



its ok, it should work

---------- Post added at 10:32 PM ---------- Previous post was at 10:31 PM ----------

give me the deb and i will try it, upload it to mediafire or 2shared ..........
0

#8
User is offline   yan93 

  • Senior Member
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 223
  • Joined: 11-May 09
Ops. Maybe I found the mistake. I had the folder only (download http://www.megaupload.com/?d=9AHOQ6OO ) and not a deb. How to convert it?
0

#9
User is offline   fusen 

  • Magic
  • PipPipPipPipPipPipPipPipPipPip
  • Group: +Contributor
  • Posts: 735
  • Joined: 27-November 08
I prefer to just use the iphone to make them
1

#10
User is offline   Freerunnering 

  • Senior Member
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 426
  • Joined: 16-September 09
^^^ hows that way to make them??
Posted Image


Click the GREEN Posted Image button!!!
1

#11
User is offline   schnedi 

  • Pwned
  • PipPipPipPipPipPipPipPipPipPip
  • Group: +Contributor
  • Posts: 1490
  • Joined: 10-November 08

Freerunnering said:

^^^ hows that way to make them??



same but change desktop for your iphone/ipod (SSH)

---------- Post added at 07:02 PM ---------- Previous post was at 06:55 PM ----------

yan93 said:

Ops. Maybe I found the mistake. I had the folder only (download http://www.megaupload.com/?d=9AHOQ6OO ) and not a deb. How to convert it?



its ok, to make deb write this command

dkg -b X
1

#12
User is offline   yan93 

  • Senior Member
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 223
  • Joined: 11-May 09
ok. terminal says many errors and that the pakage is ready. but where is it? i cant find it in var/root
0

#13
User is offline   schnedi 

  • Pwned
  • PipPipPipPipPipPipPipPipPipPip
  • Group: +Contributor
  • Posts: 1490
  • Joined: 10-November 08
its created in the same folder you place it
1

#14
User is offline   yan93 

  • Senior Member
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 223
  • Joined: 11-May 09
Oh great! I found it.

Thank you!!
0

#15
User is offline   tmonty11 

  • Whats an iPhone
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 14-February 09
every time i try the command, i get an error saying it failed to open the package info file X/DEBIAN?control' for reading: No such file or directory. What does this mean? How can I fix it?
tMonty
0

#16
User is offline   CaseyVGC 

  • Repo Guy from 2010
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Staff
  • Posts: 1036
  • Joined: 05-February 09
You did not make the control file.
Current Devices Owned:
iPhone 4 32GB 5.0.1 Jailbreak with redsn0w
iPod touch 2G 16GB 4.0

Computer Owned:
Sony VAIO SC Series with Intel i5-2410M 2.30GHz Quad Core
8GB RAM w/ 500GB Hybrid Drive (w/ 4GB SSD)
Windows 7 Ultimate Dual-Boot w/ Pinguy OS 12.04 LTS
0

#17
User is offline   tmonty11 

  • Whats an iPhone
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 14-February 09
but i did. I made a blank file then copied the info into it
tMonty
0

#18
User is offline   CaseyVGC 

  • Repo Guy from 2010
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Staff
  • Posts: 1036
  • Joined: 05-February 09
By the post above is the control file in the DEBIAN folder
Current Devices Owned:
iPhone 4 32GB 5.0.1 Jailbreak with redsn0w
iPod touch 2G 16GB 4.0

Computer Owned:
Sony VAIO SC Series with Intel i5-2410M 2.30GHz Quad Core
8GB RAM w/ 500GB Hybrid Drive (w/ 4GB SSD)
Windows 7 Ultimate Dual-Boot w/ Pinguy OS 12.04 LTS
0

#19
User is offline   tmonty11 

  • Whats an iPhone
  • PipPip
  • Group: Members
  • Posts: 25
  • Joined: 14-February 09
yeah its in the DEBIAN folder. and that folder is in folder X which is in root (i dropped it there with winSCP) so obviously something is wrong with teh control file but idk what
tMonty
0

#20
User is offline   CaseyVGC 

  • Repo Guy from 2010
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Staff
  • Posts: 1036
  • Joined: 05-February 09
The permissions to the file have to be 755
Current Devices Owned:
iPhone 4 32GB 5.0.1 Jailbreak with redsn0w
iPod touch 2G 16GB 4.0

Computer Owned:
Sony VAIO SC Series with Intel i5-2410M 2.30GHz Quad Core
8GB RAM w/ 500GB Hybrid Drive (w/ 4GB SSD)
Windows 7 Ultimate Dual-Boot w/ Pinguy OS 12.04 LTS
0

Share this topic:


  • (8 Pages) +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic


Close  Member Login