mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
use tea to install ruby for our scripts
This commit is contained in:
parent
6277d70bba
commit
07c7e38802
3 changed files with 13 additions and 8 deletions
|
@ -1,13 +1,20 @@
|
|||
#!/usr/bin/env ruby
|
||||
# ^^ we have to specify ruby or ruby refuses to run the script
|
||||
# as an aside, what kind of feature *is* that exactly?
|
||||
# ---
|
||||
# dependencies:
|
||||
# ruby-lang.org: 2
|
||||
# bundler.io:
|
||||
# version: 3
|
||||
# with:
|
||||
# gems: [ruby-macho: 3]
|
||||
# ruby-lang.org: 3
|
||||
# args: [ruby]
|
||||
# ---
|
||||
|
||||
require 'bundler/inline'
|
||||
|
||||
gemfile do
|
||||
source 'https://rubygems.org'
|
||||
gem 'ruby-macho', '~> 3'
|
||||
end
|
||||
|
||||
|
||||
#TODO file.stat.ino where file is Pathname
|
||||
|
||||
require 'fileutils'
|
||||
|
|
|
@ -116,6 +116,7 @@ async function __build(pkg: Package) {
|
|||
case 'darwin':
|
||||
return await run({
|
||||
cmd: [
|
||||
'tea',
|
||||
prefix.join('fix-machos.rb'),
|
||||
installation.path,
|
||||
...['bin', 'lib', 'libexec'].map(x => installation.path.join(x)).filter(x => x.isDirectory())
|
||||
|
|
|
@ -4,10 +4,7 @@
|
|||
args:
|
||||
- deno
|
||||
- run
|
||||
- --allow-net
|
||||
- --allow-run
|
||||
- --allow-read
|
||||
- --allow-write={{ tea.prefix }}
|
||||
- --allow-env
|
||||
- --import-map={{ srcroot }}/import-map.json
|
||||
---*/
|
||||
|
|
Loading…
Reference in a new issue