xSellize: Creating a Cydia Repository [Windows] - xSellize

Jump to content




Remove all advertisements.
Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Creating a Cydia Repository [Windows]

#1
User is offline   Ls600h 

  • eX Staff
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2243
  • Joined: 12-September 08
All credits to maXimus for this amazing guide
OP Here

Also Read

http://www.saurik.com/id/7

What you NEED
A computer with Linux/Ubuntu 8.10 installed
A website - where you have FTP access for hosting the repository.
THIS package - it contains files that you will copy to two directories on your Linux machine.
An App or Theme - We don't need an empty Repo

STEP I

Example.
In this example there is a them "MyProgram". There is a folder "MyProgram" with all the files. In that there is a subfolder "DEBIAN"(Case-Sensetive -- all caps) Which is required. This has a control file in it. The next subfoler is Library and inside that there is Themes (Because this is a theme and theme go to /library/themes). This has to be exactly like how its supposed to go on the iPhone .
http://www.xsellize....0&pictureid=174

STEP II
control File
This is in the DEBIAN foler
It has The Following Fields


  • Package: this is the identifier of the package and should be all lower case. It is similar to the bundleIdentifier in Apple's Info.plist file.
  • Name: the name of your program as seen in Cydia.
  • Version: program version number.
  • Architecture: this will probably always be "iphoneos-arm" if you are writing for firmware 1.2/2.x.
  • Depends: program(s) that need to be installed for your program to work such as "winterboard" if it is a theme.
  • Description: a description of your program (ignored if you use Depiction).
  • Homepage: sends the user to the page of the packager's choice (ignored if you use Depiction).
  • Depiction: this loads a URL into an iframe in place Description and Homepage. You should use this to display custom links and/or screenshots.
  • Maintainer: package builder, person to contact for problems, format "Name ".
  • Author: wrote the software, same format as Maintainer.
  • Sponsor: financial provider for package, format "Name .
  • Section: location in Cydia.

http://www.xsellize....0&pictureid=175

Now Switch over to linux

Download THIS

http://www.xsellize....0&pictureid=176

Extract the files from the archive and u should have dpkg-scanpackagesand dpkg-gettext.pl

http://www.xsellize....0&pictureid=177

Open Terminal And run the following commands to copy the dpkg-scanpackages
file to the /usr/bin folder and make it executable by changing permissions

sudo cp /home/username/Desktop/cydia-repo/dpkg-scanpackages /usr/bin
sudo chmod 0777 /usr/bin/dpkg-scanpackages
http://www.xsellize....0&pictureid=182

Then type
sudo cp /home/username/Desktop/cydia-repo/dpkg-gettext.pl /etc/perl
sudo chmod 0777 /etc/perl/dpkg-gettext.pl
to copy the dpkg-gettext.pl file to the /etc/perl folder and make it executable
http://www.xsellize....0&pictureid=181

And your /usr/bin folder should look like
http://www.xsellize....0&pictureid=179
And your /etc/perl folder should look like
http://www.xsellize....0&pictureid=183

create a folder in your home folder (lets call it cydia), create a sub-folder called apps for your apps and themes and another called upload for files going to your repository.
http://www.xsellize....0&pictureid=184

In upload create a folder deb
http://www.xsellize....0&pictureid=185

Place your app or theme in the apps folder.
http://www.xsellize....0&pictureid=186

Then open Terminal again and type
cd /home/username/cydia/apps
dpkg -b MyProgam
to change to the apps directory and build the .deb file
(case sensetive)
http://www.xsellize....0&pictureid=187

In your apps folder u should see the new deb
http://www.xsellize....0&pictureid=188

Move the .deb file to the /home/username/cydia/upload/deb
http://www.xsellize....0&pictureid=189

In terminal type
cd /home/username/cydia/upload
dpkg-scanpackages -m . /dev/null >Packages
 
to build the Packages file
http://www.xsellize....0&pictureid=190

Browse to the upload folder and you should find your Packages file.
http://www.xsellize....0&pictureid=191

Then open Packages with "Text Editor" (right-click open with)
Check that Filename: says ./deb/MyProgram.deb.
http://www.xsellize....0&pictureid=192

Right-click the Packages file and choose "Create archive...".
Change the file extension to .gz and click Create.
http://www.xsellize....0&pictureid=193

Now u have 3 packages in /home/username/cydia/upload/
deb, Packages, Packages.gz
Upload them to your website repo
http://www.xsellize....0&pictureid=194

Now Return To Windows
Create a text file called Release with your repository information.
When you save the text file, you must remove the ".txt" a the end of the file name if your editor automatically adds it to the file.
http://www.xsellize....0&pictureid=195

Here are brief descriptions of each field:
  • Origin: slightly longer version of your repo name.
  • Label: shorter version of repo name.
  • Suite: should always be "stable".
  • Version: arbitrary version number.
  • Codename: put whatever you want here.
  • Architectures: should always be "iphoneos-arm".
  • Components: should always be "main".
  • Description: a short description of the repo.

Upload the Release file to your repository to the same location as the deb folder, Package file and Package.gz archive.
http://www.xsellize....0&pictureid=196

Now go and test it in cydia:hooray:

via MaXimus

ALSO
Here is another way to create your .deb files using your iPhone
U need Winscp

Browse to root directory
(/)
create a folder called Cydia
http://www.xsellize....0&pictureid=197


Copy your app or theme to the /Cydia directory on your iPhone.
http://www.xsellize....0&pictureid=198

Open a terminal in WinSCP and run this command from /Cydia
dpkg -b MyProgram
http://www.xsellize....0&pictureid=199

Now you have your .deb file in the Cydia directory
http://www.xsellize....0&pictureid=201

copy your .deb file to your computer Thats it!



This post has been edited by Ls600h: 14 March 2009 - 02:22 PM

http://www.xsellize....line=1240133184
Thx to Trawn01 for my Sig and Avatar :hooray:
0


#Ads
User is online x-bot

  • Ad-Bot
  • Group:x-bot




Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked


Close  Member Login