Skip to content

Commit

Permalink
Merge pull request #12 from kbernhagen/cbang-submodule
Browse files Browse the repository at this point in the history
Add cbang submodule
  • Loading branch information
jcoffland committed Jun 13, 2022
2 parents 091a816 + 9a313d5 commit 211ef6d
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "cbang"]
path = cbang
url = https://github.com/CauldronDevelopmentLLC/cbang.git
branch = master
27 changes: 24 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
fah-client-osx-uninstaller
==========================
# Folding@home Desktop Client OSX Uninstaller

Folding@home Desktop Client OSX Uninstaller
A package to uninstall Folding@home versions 5 through 8
for macOS 10.5+, all architectures.

Pre-built packages are available at
[Releases](https://github.com/FoldingAtHome/fah-client-osx-uninstaller/releases)


## Building without signing

You will need Xcode from the Apple Mac App Store.

You will need SCons

pip3 install scons --user

Make sure `scons` is in your `PATH`.

Then use commands

git clone https://github.com/FoldingAtHome/fah-client-osx-uninstaller.git
cd fah-client-osx-uninstaller
git submodule update --init --recursive
scons package
20 changes: 10 additions & 10 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if sys.platform != 'darwin':

env = Environment(ENV = os.environ)
try:
env.Tool('config', toolpath = [os.environ.get('CBANG_HOME')])
env.Tool('config', toolpath = [os.environ.get('CBANG_HOME'), './cbang'])
except Exception as e:
raise Exception('CBANG_HOME not set?\n' + str(e))

Expand All @@ -18,6 +18,8 @@ conf = env.CBConfigure()
version = '0.1.5'
env.Replace(PACKAGE_VERSION = version)

conf.Finish()

# Flat Dist Components
distpkg_components = [
{'name': 'Uninstaller',
Expand Down Expand Up @@ -46,7 +48,7 @@ parameters = {
'description' : 'Folding@home uninstaller package',
'short_description' : 'Folding@home uninstaller package',
'pkg_type' : 'dist',
'distpkg_resources' : [['Resources', '.'], ['LICENSE', '.']],
'distpkg_resources' : [['Resources', '.']],
'distpkg_welcome' : 'Welcome.rtf',
'distpkg_conclusion' : 'Conclusion.rtf',
'distpkg_background' : 'fah-opacity-50.png',
Expand All @@ -56,19 +58,17 @@ parameters = {
'distpkg_components' : distpkg_components,
'distpkg_customize' : 'never', # only one component
}
pkg = env.Packager(**parameters)

AlwaysBuild(pkg)
env.Alias('package', pkg)
if 'package' in COMMAND_LINE_TARGETS:
pkg = env.Packager(**parameters)
AlwaysBuild(pkg)
env.Alias('package', pkg)
Clean(pkg, ['build', 'config.log'])
NoClean(pkg, Glob(name + '*.pkg') , 'package.txt')

# Clean
Clean(pkg, ['build', 'config.log'])
# ensure *.zip not cleaned unless distclean
NoClean(pkg, Glob('*.zip'))
if 'distclean' in COMMAND_LINE_TARGETS:
Clean('distclean', [
'.sconsign.dblite', '.sconf_temp', 'config.log',
'build', 'package.txt', 'package-description.txt',
Glob(name + '*.pkg'),
Glob(name + '*.zip'),
])
1 change: 1 addition & 0 deletions cbang
Submodule cbang added at 1a58d9

0 comments on commit 211ef6d

Please sign in to comment.