Skip to content

Instantly share code, notes, and snippets.

View bbedward's full-sized avatar

BB bbedward

  • Cleveland, OH
View GitHub Profile
@bbedward
bbedward / base.sh
Created March 17, 2023 00:01
spilo pgjwt
git clone https://github.com/michelp/pgjwt.git /pgjwt
# forbid creation of a main cluster when package is installed
sed -ri 's/#(create_main_cluster) .*$/\1 = false/' /etc/postgresql-common/createcluster.conf
for version in $DEB_PG_SUPPORTED_VERSIONS; do
sed -i "s/ main.*$/ main $version/g" /etc/apt/sources.list.d/pgdg.list
apt-get update
if [ "$DEMO" != "true" ]; then
@bbedward
bbedward / Fastfile_ios.rb
Last active December 22, 2022 14:02
CI/CD In Flutter using GitLab and Fastlane Tutorial
# Automatically update fastlane
update_fastlane
default_platform(:ios)
# Default temporary keychain password and name, if not included from environment
TEMP_KEYCHAIN_NAME_DEFAULT = "fastlane_flutter"
TEMP_KEYCHAN_PASSWORD_DEFAULT = "temppassword"
# Remove the temporary keychain, if it exists
@bbedward
bbedward / flutter_build_ios.sh
Last active April 2, 2021 12:49
Appditto Flutter+Fastlane+GitLab Tutorial
#!/bin/bash
cd ../../
if [ "$1" == "--clean" ]
then
echo "Running clean..."
flutter clean
else
echo "Skipping clean..."
fi
flutter build ios --release --no-codesign
stages:
- test
- update
- build
- deploy
tests:
stage: test
only:
- master
android:build:
stage: build
tags:
- appditto_mac
script:
# Flutter local configuration
- echo flutter.sdk=$FLUTTER_PATH > android/local.properties
- echo sdk.dir=$ANDROID_SDK_PATH >> android/local.properties
- echo flutter.buildMode=release >> android/local.properties
# Android signing
prod:android:deploy:
stage: deploy
tags:
- appditto_mac
script:
- cd android
- bundle exec fastlane deploy_android production:true
when: manual
dependencies:
- android:build
update:
stage: update
only:
- master
tags:
- appditto_mac
script:
- flutter packages get
- flutter packages upgrade
interruptible: true
tests:
stage: test
only:
- master
tags:
- appditto_mac
script:
- flutter test
interruptible: true
stages:
- test
- update
- build
- deploy
@bbedward
bbedward / Deliverfile
Created November 12, 2019 18:54
Fastlane+Flutter tutorial
release_notes({
'default' => File.read('./fastlane/metadata/en-US/release_notes.txt'),
'en-US' => File.read('./fastlane/metadata/en-US/release_notes.txt')
});
submission_information({
add_id_info_serves_ads: false,
add_id_info_tracks_action: false,
add_id_info_tracks_install: false,
add_id_info_uses_idfa: false,