Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6KAI-0003Vz-CC for pgadmin-hackers@arkaria.postgresql.org; Fri, 27 May 2016 15:59:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b6KAH-0004sY-VX for pgadmin-hackers@arkaria.postgresql.org; Fri, 27 May 2016 15:59:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b6KA5-0004eV-5F for pgadmin-hackers@postgresql.org; Fri, 27 May 2016 15:58:57 +0000 Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1b6KA0-0003ke-Be for pgadmin-hackers@postgresql.org; Fri, 27 May 2016 15:58:56 +0000 Received: by mail-it0-x233.google.com with SMTP id l63so75392053ita.1 for ; Fri, 27 May 2016 08:58:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=TliAWCvLenc+3j/IB2bJkcA/globyRt84HOzMtPa+9o=; b=fGEkQT40/iVWjCc8xud85lMygXtNbJ17l08O7F+yRkU3ME9x/iUnFlXNQIl0q5Ee5O ocx/KBEDz//Nqx5IOecJuw+vGmG8pkyM9Hx9qu2+hG6px199KXetbfSsbe1UxjCFH560 5ZUeOZxv0fIkxdPM2QKj8Nedn/UBnIEjOYCQHJ5wOAGlDOPJ60sqIju4B1N28I6eoZ5f oF8bQDIJsDxWGONuo4HFKl4bm+6g8aqAbaX2h9pH/mkxIcycJ87JvQIGhX1u1OFtJWdg 6ZGOakA2c+WR5jv66bHYSwnEyLi5/2U7YQ0y+EGb5NXLjl29wIUEV1zqXnJ2S8VfiO8u 8S/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=TliAWCvLenc+3j/IB2bJkcA/globyRt84HOzMtPa+9o=; b=NAcUKn40Eksa5GqYP067d7gIdsz5RN2xr9Ok/8mnrk3FXVXlTSH4VGNleLP+EfVWce soCVOwLoQ1KTFHJ4VZZU/Yi4BDVb9CSa1/2cTRmh/MDvEY3V25RYZ1iMqcjERUX9XcV1 qsH6dzo1DuLl83sJXVGwJxDFgT9ZH/VSnU+8XXEjtVMWBiXhtFDjem53KZ+doUIlOzVE w3D6RKpMCkYaiJfgMNdgwCsmyMRJzwM/2p20e4wMK3b+rbj3aqBZTQdB6M6+io6TMRF1 pn8qazp7XPaukarBkfnrhsJobaDeLguoLWO9flsVUZ/9SAAtr6+hWisJY536x8IX1Nyh 99Sw== X-Gm-Message-State: ALyK8tIfE1wX6ZEEkEYr4BgSYBixeaLLpwERmM4wHTdM0u205pWJMLGbdQxlDg06XTWTr7B28pKqcNhS72a8KQ== MIME-Version: 1.0 X-Received: by 10.36.33.1 with SMTP id e1mr9552531ita.37.1464364730662; Fri, 27 May 2016 08:58:50 -0700 (PDT) Received: by 10.64.236.101 with HTTP; Fri, 27 May 2016 08:58:50 -0700 (PDT) In-Reply-To: References: Date: Fri, 27 May 2016 16:58:50 +0100 Message-ID: Subject: Re: Patch for pgAdmin4 package on Mac OS X From: Dave Page To: Sandeep Thakkar , pgadmin-hackers , Hamid Quddus Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org On Fri, May 27, 2016 at 4:48 PM, Dave Page wrote: > > > On Fri, May 27, 2016 at 1:11 PM, Sandeep Thakkar > wrote: >> >> Sure. Thanks. >> >> There is a typo in pkg/mac/build.sh. i.e >> >> s/HTML_HELP/HELP_PATH/ >> >> >> On Fri, May 27, 2016 at 5:26 PM, Dave Page wrote: >>> >>> Not entirely - we definitely need to improve it. I'll review the code as >>> it is now though. > > > OK, review time :-) > > - The appbundle name should be created from APP_NAME.app in config.py, e.g. > 'pgAdmin 4.app' > > - The DMG name should be created from > to_lower(remove_spaces(APP_NAME-APP_VERSION)) in config.py, e.g. > pgadmin4-1.0-dev.dmg > > - Use #ifdef Q_OS_MAC in the QT code for Mac-specific code. There's no need > to define another macro. > > - Please add "MINIFY_HTML = False" to config_local.py (and have Paresh do > the same on his packages). This works around a code issue with the docs that > I'll log a bug for. > > - In testing, I found that running the app from within the DMG doesn't seem > to work the first time - it prompts for the path, then exits. Once I save > the path it offers, it's fine on subsequent runs. > > - Once copied to my laptop, I saw the same issue as above. > > Once these issues are resolved, I think we're good to commit. Oh, a couple more things: - There should not be a copy of the app bundle in dist/ following the build. Only the dmg should be there. - I think mac-build/ should be removed following a successful build, rather than waiting for make clean (please talk to Paresh - his code should do the same). -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers