WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: extension building  (Read 1986 times)

Offline sanji

  • Newbie
  • *
  • Posts: 7
extension building
« on: October 26, 2015, 08:55:45 AM »
Hi,
Just playin' with TC, building personal extensions.
So far so good. but today I'm trying to build Fs-Uae from sources.
Everything went smooth, but at the end of building, a fs-uae.dat file was generated.
When I built the extension, this .dat file was not included in the generated tcz file..
Should I create another extension only for this file (maybe a script)? Or are there
other ways to accomplish this?

thank you

Sanji
 

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: extension building
« Reply #1 on: October 26, 2015, 09:37:56 AM »
You don't say how you built the tcz, but assuming you used the destdir method, maybe this did not copy fs-uae.dat and you need to do it manually?

Offline sanji

  • Newbie
  • *
  • Posts: 7
Re: extension building
« Reply #2 on: October 26, 2015, 09:48:08 AM »
Hi Juanito.
Sorry..I posted in the wrong subforum :-[
I used the Destdir method, following corebook.
..and as you wrote, I need to do it manually...

Sanji

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: extension building
« Reply #3 on: October 26, 2015, 10:25:54 AM »
That's one of the "gotchas" of the destdir method, you also won't necessarily know about the potential need to rebuild an icon/imodule/pixbuf cache, recompile schemas, add mime types, etc.

Offline sanji

  • Newbie
  • *
  • Posts: 7
Re: extension building
« Reply #4 on: October 27, 2015, 08:46:40 AM »
So...I assume there are other (better) ways to create an extension other than DESTDIR method...which ones?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14819
Re: extension building
« Reply #5 on: October 27, 2015, 08:59:36 AM »
I wouldn't say they're better, just different  :)

You can also do this:
Code: [Select]
$ touch mymarker
$ sudo make install
$ sudo find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | grep -v "^\/sys\/" | tee files
[edit files]
$ sudo tar -T files --numeric-owner -zcvf extension.tar.gz

Then copy the tarball somewhere conveniant, un-tar it, edit and make your tcz