#6548 Build and Sign OS X media writer.
Merged 6 years ago by puiterwijk. Opened 7 years ago by mohanboddu.
mohanboddu/releng osx_mediawriter  into  master

@@ -65,6 +65,99 @@ 

  The FedoraMediaWriter-win32-<release_number>.exe is located under dist/win/ 

  directory.

  

+ OS X:

+ -----

+ 

+ Build:

+ ------

+ 

+ #. install xcode 8.1 from apple store.

+ #. install qt for mac from:

+        http://download.qt.io/official_releases/qt/5.7/5.7.0/qt-opensource-mac-x64-clang-5.7.0.dmg

+ #. Open a terminal and run the following commands

+  

+    ::

+         $ git clone https://github.com/MartinBriza/MediaWriter

+         $ cd MediaWriter

+         $ mkdir build

+         $ cd build

+         $ $QT_PREFIX/$QT_VERSION/clang64/bin/qmake ..

+         $ make

+         $ cp build/helper/mac/helper.app/Contents/MacOS/helper build/app/Fedora\ Media\ Writer.app/Contents/MacOS/

+         $ cd build/app

+         $ $QT_PREFIX/$QT_VERSION/clang_64/bin/macdeployqt "Fedora Media Writer.app" \

+                 -executable="Fedora Media Writer.app/Contents/MacOS/helper" -qmldir="../../app"

+ 

+ Prepare certificates

+ --------------------

+ 

+ This only needs to happen once per build machine, and prepares the certificates

+ by requesting them from Apple.

+ 

+ #. Install Xcode from the Mac App store

+ #. Start Xcode

+ #. Press Command-, (or in the menu bar click Xcode -> Preferences)

+ #. Go to Accounts tab

+ #. Click the plus button and sign in

+ #. Select the new account

+ #. Select the correct team

+ #. Click View Details

+ #. Under "Signing Identities", find "Developer ID Application"

+ #. Click Create

+ #. Wait until the button disappears

+ #. Done

+ 

+ Sign and DMG

+ ------------

+ 

+ #. Open a terminal 

+ #. cd to the root directory of the FMW project

+ #. Run the following bash script:

+ 

+    ::

+         #/bin/bash

+ 

+         security -v unlock-keychain login.keychain

+ 

+         # First sign all dynamic libraries (dylib's)

+         cd "build/app/Fedora Media Writer.app"

+         for dylib in $(find  . -name "*dylib")

+         do

+              codesign -s "Developer ID Application: Fedora Gilmore" -v $dylib

+         done

+         # Now sign framework bundles

+         for framework in $(find  . -name "*framework")

+         do

+              codesign -s "Developer ID Application: Fedora Gilmore" -v $framework

+         done

+ 

+         # Sign the two binaries

+         codesign -s "Developer ID Application: Fedora Gilmore" -v Contents/MacOS/helper

+         codesign -s "Developer ID Application: Fedora Gilmore" -v "Contents/MacOS/Fedora Media Writer"

+ 

+         # Sign the app bundle

+         codesign -s "Developer ID Application: Fedora Gilmore" -v .

+ 

+         # Create the dmg

+         cd ..

+         rm -f FedoraMediaWriter-osx-*.dmg

+ 

+         hdiutil create -srcfolder "Fedora Media Writer.app"  -format UDCO -imagekey zlib-level=9 -scrub \

+                        -volname FedoraMediaWriter-osx FedoraMediaWriter-osx-$(git  describe --tags).dmg

+ 

+ Account Email(OS X)

+ -------------------

+ 

+    ::

+         releng@fedoraproject.org

+ 

+ Account Holders(OS X)

+ ---------------------

+ 

+ #. Primary: Dennis Gilmore(ausil)

+ #. Backup: Kevin Fenzi(kevin)

+ #. Manager/bill-payer: Paul Frields(pfrields)

+ 

  Consider Before Running

  =======================

  Nothing yet.

no initial comment

1 new commit added

  • Adding account holders
7 years ago

1 new commit added

  • Change email to FAS
7 years ago

Pull-Request has been merged by puiterwijk

6 years ago
Metadata