* * *

Author Topic: LazTranslator for MAC OSX  (Read 361 times)

laguna

  • Full Member
  • ***
  • Posts: 241
LazTranslator for MAC OSX
« on: April 15, 2018, 04:52:04 pm »
LazTranslator
I have prepared this small program, for Mac OSX, which uses google's API to translate the text, and produce the audio file.
The program is free, respecting all licenses.
The program for the moment is distributed without the sources, soon, after having cleaned up the code, I will publish all the sources.
The program makes use of the INDY and UOS library.
Link repository: https://github.com/scozzaro/lazTransl

« Last Edit: April 15, 2018, 09:34:13 pm by laguna »

Phil

  • Hero Member
  • *****
  • Posts: 2557
Re: LazTranslator for MAC OSX
« Reply #1 on: April 15, 2018, 05:12:04 pm »
The program for the moment is distributed without the sources, soon, after having cleaned up the code, I will publish all the sources.

Suggestions:

- Add a copyright to your Info.plist and a proper version number so that when user does Cmd+I on lazTrans.app they see this info in the popup.

- The .mp3 resource should be in the Resources folder, not the MacOS folder.

- Libraries should go in the Frameworks folder, not the MacOS folder.

- Don't distribute binary libraries for other platforms in the .app bundle (Windows, FreeBSD, Linux). That makes no sense whatsoever.

- You can strip out the ppc slice from the libraries (.dylib) that have it. One of the libraries is Intel only so the app itself will be restricted to Intel only, so no point in including the ppc slice.

- 32-bit is going away soon on Mac, yet the libraries only have 32-bit slice - see if there are versions that include 64-bit slices, or your app will be dying soon on Mac.

Edit: Oh yeah, some basic distribution suggestions:

- Codesign your .app bundle.
- Create a proper .dmg for the app.
- Codesign the .dmg.
« Last Edit: April 15, 2018, 05:14:20 pm by Phil »

laguna

  • Full Member
  • ***
  • Posts: 241
Re: LazTranslator for MAC OSX
« Reply #2 on: April 15, 2018, 05:21:36 pm »
Start immediately to make the changes you have recommended.
As for the UOS library (LibMpg123-32.dylib .....), do you know if there are 64bit ones?

Thanks for all.

Phil

  • Hero Member
  • *****
  • Posts: 2557
Re: LazTranslator for MAC OSX
« Reply #3 on: April 15, 2018, 05:33:37 pm »
Start immediately to make the changes you have recommended.
As for the UOS library (LibMpg123-32.dylib .....), do you know if there are 64bit ones?

Sorry, I don't know the first thing about those libraries.

This could be a pretty nice app so make it as slick as possible.


laguna

  • Full Member
  • ***
  • Posts: 241
Re: LazTranslator for MAC OSX
« Reply #4 on: April 15, 2018, 06:14:16 pm »
I have performed the suggestions you have indicated to me.

I entered the data you info.plist manually, with an editor, you can enter this data in Lazarus?

The UOS library, I need to play the MP3 audio file, I have not found a native solution.

Can you check if everything is OK?


Thanks for everything

Phil

  • Hero Member
  • *****
  • Posts: 2557
Re: LazTranslator for MAC OSX
« Reply #5 on: April 16, 2018, 12:37:08 am »
Can you check if everything is OK?

The new download is 95MB. Is that what you intended? That's about 10x what the earlier download was.

laguna

  • Full Member
  • ***
  • Posts: 241
Re: LazTranslator for MAC OSX
« Reply #6 on: April 16, 2018, 02:32:25 am »
Fix dmg size.

Thanks

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus