This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rect getRectFromWidget(GlobalKey gKey) { | |
final keyContext = gKey.currentContext; | |
if (keyContext != null) { | |
final box = keyContext.findRenderObject() as RenderBox; | |
final offset = box.localToGlobal(Offset.zero); | |
final size = box.hasSize ? box.size : Size.zero; | |
return Rect.fromLTWH(offset.dx, offset.dy, size.width, size.height); | |
} | |
return Rect.zero; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: ["push"] | |
name: coveralls | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | |
name: npm-publish | |
on: | |
release: | |
types: [created] | |
jobs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mount dmg | |
echo "Mount DMG..." | |
hdiutil attach ${TEMP_DMG_FILE} | tee ${LOG_FILE0} | |
DMG_UUID=`grep /Volumes/untitled ${LOG_FILE0} | awk '{print $2}'` | |
echo DMG UUID = ${DMG_UUID} | |
# rename dmg | |
echo "Rename DMG's olume name" | |
diskutil rename untitled Storyboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CODE_BASE=/path/to/Storyboard | |
SCRIPT_PATH=$(dirname "$0") | |
DEPLOY_ROOT_PATH="${SCRIPT_PATH}/.." | |
LOG_PATH="${DEPLOY_ROOT_PATH}/logs" | |
BUILD_PATH="${DEPLOY_ROOT_PATH}/build/macos" | |
VERSION= | |
STATUS= | |
REQUEST_UUID= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
powershell -Command "(gc libBackend.h) -replace '__SIZE_TYPE__', 'size_t' | %%{$_ -replace 'typedef (.*) _Complex ', '//typedef $1 _Complex '} | out-file libBackend_msvc.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//change __SIZE_TYPE__ to size_t --> | |
//typedef __SIZE_TYPE__ GoUintptr; | |
typedef size_t GoUintptr; | |
// comment out _Complex since it is not supported by msvc --> | |
//typedef float _Complex GoComplex64; | |
//typedef double _Complex GoComplex128; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_subdirectory("backend") | |
install(FILES "${BACKEND_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(BACKEND_LIBRARY "${CMAKE_CURRENT_SOURCE_DIR}/libBackend.dll") | |
set(BACKEND_LIBRARY ${BACKEND_LIBRARY} PARENT_SCOPE) |
NewerOlder