mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 21:01:36 +00:00
6.02, admin.googleapis.com as test, MacOS universal2 build
This commit is contained in:
6
.github/actions/macos-install.sh
vendored
6
.github/actions/macos-install.sh
vendored
@@ -4,11 +4,7 @@ echo "Xcode versionn:"
|
|||||||
xcodebuild -version
|
xcodebuild -version
|
||||||
export gampath=dist/gam
|
export gampath=dist/gam
|
||||||
rm -rf $gampath
|
rm -rf $gampath
|
||||||
if [ "$PLATFORM" == "x86_64" ]; then
|
export specfile="gam.spec"
|
||||||
export specfile="gam.spec"
|
|
||||||
else
|
|
||||||
export specfile="gam-universal2.spec"
|
|
||||||
fi
|
|
||||||
$python -OO -m PyInstaller --clean --noupx --strip -F --distpath "${gampath}" "${specfile}"
|
$python -OO -m PyInstaller --clean --noupx --strip -F --distpath "${gampath}" "${specfile}"
|
||||||
export gam="${gampath}/gam"
|
export gam="${gampath}/gam"
|
||||||
$gam version extended
|
$gam version extended
|
||||||
|
|||||||
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -56,11 +56,11 @@ jobs:
|
|||||||
goal: "build"
|
goal: "build"
|
||||||
gamos: "macos"
|
gamos: "macos"
|
||||||
platform: "x86_64"
|
platform: "x86_64"
|
||||||
# - os: macos-11.0
|
- os: macos-11.0
|
||||||
#jid: 12
|
jid: 12
|
||||||
#goal: "build"
|
goal: "build"
|
||||||
#gamos: "macos"
|
gamos: "macos"
|
||||||
#platform: "universal2"
|
platform: "universal2"
|
||||||
- os: windows-2019
|
- os: windows-2019
|
||||||
jid: 5
|
jid: 5
|
||||||
goal: "build"
|
goal: "build"
|
||||||
|
|||||||
@@ -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'})
|
|
||||||
@@ -619,7 +619,7 @@ TIME_OFFSET_UNITS = [('day', 86400), ('hour', 3600), ('minute', 60),
|
|||||||
('second', 1)]
|
('second', 1)]
|
||||||
|
|
||||||
|
|
||||||
def getLocalGoogleTimeOffset(testLocation='www.googleapis.com'):
|
def getLocalGoogleTimeOffset(testLocation='admin.googleapis.com'):
|
||||||
localUTC = datetime.datetime.now(datetime.timezone.utc)
|
localUTC = datetime.datetime.now(datetime.timezone.utc)
|
||||||
try:
|
try:
|
||||||
# we disable SSL verify so we can still get time even if clock
|
# we disable SSL verify so we can still get time even if clock
|
||||||
@@ -733,7 +733,7 @@ def getOSPlatform():
|
|||||||
|
|
||||||
def doGAMVersion(checkForArgs=True):
|
def doGAMVersion(checkForArgs=True):
|
||||||
force_check = extended = simple = timeOffset = False
|
force_check = extended = simple = timeOffset = False
|
||||||
testLocation = 'www.googleapis.com'
|
testLocation = 'admin.googleapis.com'
|
||||||
if checkForArgs:
|
if checkForArgs:
|
||||||
i = 2
|
i = 2
|
||||||
while i < len(sys.argv):
|
while i < len(sys.argv):
|
||||||
@@ -1169,7 +1169,7 @@ def doCheckServiceAccount(users):
|
|||||||
time_status = test_fail
|
time_status = test_fail
|
||||||
printPassFail(
|
printPassFail(
|
||||||
MESSAGE_YOUR_SYSTEM_TIME_DIFFERS_FROM_GOOGLE_BY %
|
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())
|
oa2 = getService('oauth2', transport.create_http())
|
||||||
print('Service Account Private Key Authentication:')
|
print('Service Account Private Key Authentication:')
|
||||||
# We are explicitly not doing DwD here, just confirming service account can auth
|
# We are explicitly not doing DwD here, just confirming service account can auth
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import platform
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
GAM_AUTHOR = 'Jay Lee <jay0lee@gmail.com>'
|
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_LICENSE = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
||||||
|
|
||||||
GAM_URL = 'https://git.io/gam'
|
GAM_URL = 'https://git.io/gam'
|
||||||
|
|||||||
Reference in New Issue
Block a user