Skip to content

armgit / cra

Public Imported from GitHub
0

The open-source Arc replacement for macOS. Spaces, pinned tabs, split view, Little Windows and Arc's shortcuts on Chromium, with your Arc sidebar imported in one go.

559 B
Raw Blame
#!/bin/bash
# Folder emblems: real AppKit layer projection and bitmap pixels, without CEF or visible windows.
set -euo pipefail
cd "$(dirname "$0")/.."
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/cra-folder-glyph.XXXXXX")"
trap 'rm -rf "$TEST_DIR"' EXIT
xcrun swiftc -swift-version 5 -parse-as-library ${CRA_TEST_SWIFTC_FLAGS:-} \
  Sources/Cra/UI/Sidebar/List/FolderGlyphView.swift Tests/FolderGlyphTests.swift \
  -o "$TEST_DIR/folder-glyph-tests"
"$TEST_DIR/folder-glyph-tests"
[ -z "${CRA_TEST_KEEP:-}" ] || cp "$TEST_DIR/folder-glyph-tests" "$CRA_TEST_KEEP/"