You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-22Lines changed: 7 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,9 @@
1
1
### Notes on this Fork
2
2
3
-
* Don't use the linked, compiled rubyc binaries below--you'll need to compile rubyc by-hand. I haven't had a chance to collect a rubyc for each platform yet and update the links. PR's are welcome, especially as I don't have a windows machine!
4
-
* Note that if you want to support M1 and Intel macs, you need to compile a separate rubyc for each, and build a separate packed binary for each.
5
-
* This fork started as just some tweaks to the motor-admin fork to get it working on Ruby 3.1.0 for me.
6
-
* This works with Ruby 3.1.3 now and MacOs Ventura, thank-you @taraszka!
7
-
* As a tip, the embedded filesystem runs a bit slow. This mainly matters when your app is doing many heavy requires, like the AWS ruby gem. One workaround is to autoload your requires. Autoload works well for cases when there's a constant that can be used to trigger the require for a particular item. For example, accessing JSON triggers the require of 'json' in the example below. For items that aren't used in every codepath, this strategy can greatly minimize your total requires.
3
+
* Built rubyc files for mac/linux are now found [here](https://github.com/ericbeland/ruby-packer/releases/tag/3_1_3). I don't have a windows machine, so I have not had a chance build a windows ruby. I'd love a contribution.
4
+
* Note that if you want to support M1 and Intel macs, you need to build a separate packed binary for each one on the correct type of machine. I haven't found a way around that!
5
+
* History: This fork started as just some tweaks to the motor-admin fork to get it working on Ruby 3.1.0 for me. This works with Ruby 3.1.3 now and MacOs Ventura, thank-you @taraszka!
6
+
* As a tip, the embedded filesystem runs a bit slow. This mainly matters when your app is doing many heavy requires, like the AWS ruby gem. One workaround is to autoload your requires. Autoload works well for cases when there's a constant that can be used to trigger the require for a particular item. For example, accessing JSON triggers the require of 'json' in the example below. For items that aren't used in every codepath, this strategy can greatly minimize your total requires, assuming you don't need every require
8
7
9
8
```ruby
10
9
autoload:JSON, 'json'
@@ -14,7 +13,7 @@ JSON.parse(doc)
14
13
# now 'json' is, it was loaded on the fly
15
14
```
16
15
17
-
Autoload _was_ being considered for deprecation, but that's no longer the case.
16
+
Autoload _was_ being considered for deprecation, but that's no longer the case, so fear not.
| Linux | x64 |https://gw.alipayobjects.com/os/enclose-prod/1fd23e6b-d48f-4ed0-94dd-f0f539960253/rubyc-v0.4.0-linux-x64.gz|
58
-
59
-
### Unstable Pre-release
60
-
61
-
Whenever the `master` branch CI succeeded, a Ruby Packer pre-release binary would be automatically generated. Here is the latest unstable pre-release build:
0 commit comments