6.02, admin.googleapis.com as test, MacOS universal2 build

This commit is contained in:
Jay Lee
2021-05-04 09:12:45 -04:00
parent 05bc1c1263
commit cfa25f12d3
5 changed files with 10 additions and 60 deletions

View File

@@ -4,11 +4,7 @@ echo "Xcode versionn:"
xcodebuild -version
export gampath=dist/gam
rm -rf $gampath
if [ "$PLATFORM" == "x86_64" ]; then
export specfile="gam.spec"
else
export specfile="gam-universal2.spec"
fi
export specfile="gam.spec"
$python -OO -m PyInstaller --clean --noupx --strip -F --distpath "${gampath}" "${specfile}"
export gam="${gampath}/gam"
$gam version extended

View File

@@ -56,11 +56,11 @@ jobs:
goal: "build"
gamos: "macos"
platform: "x86_64"
# - os: macos-11.0
#jid: 12
#goal: "build"
#gamos: "macos"
#platform: "universal2"
- os: macos-11.0
jid: 12
goal: "build"
gamos: "macos"
platform: "universal2"
- os: windows-2019
jid: 5
goal: "build"

View File

@@ -1,46 +0,0 @@
# -*- mode: python -*-
import sys
import importlib
from PyInstaller.utils.hooks import copy_metadata
sys.modules['FixTk'] = None
# dynamically determine where httplib2/cacerts.txt lives
proot = os.path.dirname(importlib.import_module('httplib2').__file__)
extra_files = [(os.path.join(proot, 'cacerts.txt'), 'httplib2')]
extra_files += copy_metadata('google-api-python-client')
extra_files += [('cbcm-v1.1beta1.json', '.')]
a = Analysis(['gam/__main__.py'],
hiddenimports=[],
hookspath=None,
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
datas=extra_files,
runtime_hooks=None)
for d in a.datas:
if 'pyconfig' in d[0]:
a.datas.remove(d)
break
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='gam',
debug=False,
strip=None,
upx=False,
console=True )
app = BUNDLE(exe,
name='gam.app',
icon=None,
bundle_identifier=None,
info_plist={'LSArchitecturePriority': 'arm64,x86_64'})

View File

@@ -619,7 +619,7 @@ TIME_OFFSET_UNITS = [('day', 86400), ('hour', 3600), ('minute', 60),
('second', 1)]
def getLocalGoogleTimeOffset(testLocation='www.googleapis.com'):
def getLocalGoogleTimeOffset(testLocation='admin.googleapis.com'):
localUTC = datetime.datetime.now(datetime.timezone.utc)
try:
# we disable SSL verify so we can still get time even if clock
@@ -733,7 +733,7 @@ def getOSPlatform():
def doGAMVersion(checkForArgs=True):
force_check = extended = simple = timeOffset = False
testLocation = 'www.googleapis.com'
testLocation = 'admin.googleapis.com'
if checkForArgs:
i = 2
while i < len(sys.argv):
@@ -1169,7 +1169,7 @@ def doCheckServiceAccount(users):
time_status = test_fail
printPassFail(
MESSAGE_YOUR_SYSTEM_TIME_DIFFERS_FROM_GOOGLE_BY %
('www.googleapis.com', nicetime), time_status)
('admin.googleapis.com', nicetime), time_status)
oa2 = getService('oauth2', transport.create_http())
print('Service Account Private Key Authentication:')
# We are explicitly not doing DwD here, just confirming service account can auth

View File

@@ -8,7 +8,7 @@ import platform
import re
GAM_AUTHOR = 'Jay Lee <jay0lee@gmail.com>'
GAM_VERSION = '6.01'
GAM_VERSION = '6.02'
GAM_LICENSE = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
GAM_URL = 'https://git.io/gam'