cryptopunks-gui 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/README.md +54 -3
- data/VERSION +1 -1
- data/app/cryptopunks_gui.rb +7 -4
- data/bin/cryptopunks-mac-gui +8 -0
- data/bin/cryptopunks-mac-gui.rb +8 -0
- data/bin/package-mac +8 -0
- data/bin/package-mac-app +5 -0
- data/bin/package-mac-dmg +6 -0
- data/cryptopunks-gui.gemspec +9 -3
- data/icons/cryptopunks-gui.icns +0 -0
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 500d88447b105a1383d4de25cecaf39b5d805420edab28638b157a11e243422a
|
4
|
+
data.tar.gz: 4af0fa654391c4208f330d221b39d7b5b8741d42464c1a57db0d4246a04c640e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f14974ea5229ad9bafea8dbbb15f9e874ccddd4107ba600ca5731fa2eb34b4a06742a7a3d5b25fc42cc1d1d9dcde264d1f592a2cbf150d88dfaae1d22bf74e9
|
7
|
+
data.tar.gz: 8386c9af297624919012fc389925b968cb0d76c501b55407dc8be9c9c79cf6f11274b9792ffc8b965cd1ee205ef05fcb8a0a7160a9ecf0ef8a03bf13aa470fad
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.0.10
|
4
|
+
|
5
|
+
- Fix issue with cryptopunks GUI erroring when cancelling selection of a new output location (or getting blocked by OS for security reasons)
|
6
|
+
|
3
7
|
## 0.0.9
|
4
8
|
|
5
|
-
- Added Halloween special collections: Scream, Jack 'O' Lantern, Joker, and
|
9
|
+
- Added Halloween special collections: Scream, Jack 'O' Lantern, Joker, and Frankenstein
|
6
10
|
|
7
11
|
## 0.0.8
|
8
12
|
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# <img src="https://raw.githubusercontent.com/AndyObtiva/cryptopunks-gui/master/icons/cryptopunks-gui.png" height=85 /> CryptoPunks GUI 0.0.
|
1
|
+
# <img src="https://raw.githubusercontent.com/AndyObtiva/cryptopunks-gui/master/icons/cryptopunks-gui.png" height=85 /> CryptoPunks GUI 0.0.10
|
2
2
|
## Simplified Minting
|
3
3
|
[](http://badge.fury.io/rb/cryptopunks-gui)
|
4
4
|
|
@@ -10,11 +10,15 @@ Minted cryptopunks are stored at `~/cryptopunks/` by default ([output location c
|
|
10
10
|
|
11
11
|

|
12
12
|
|
13
|
+
[<img src="https://raw.githubusercontent.com/AndyObtiva/cryptopunks-gui/master/icons/cryptopunks-gui.png" height=40 /> Download DMG installer for Mac (Catalina x64 and older)](https://www.dropbox.com/s/gfh7e9osw30sjiq/CryptoPunks%20GUI.dmg?dl=1)
|
14
|
+
|
15
|
+
If your machine is incompatible with the downloadable DMG package, you may follow [Packaging](#packaging) instructions to produce your own machine compatible installer.
|
16
|
+
|
13
17
|
## Prerequities
|
14
18
|
|
15
19
|
- [Tcl/Tk (ActiveTcl)](https://tkdocs.com/tutorial/install.html)
|
16
20
|
- [RVM](https://rvm.io/) (unless you are on Windows)
|
17
|
-
- [Ruby 3.0.2 compiled with RVM for Tk](https://rvm.io/integration/tk#tk) (unless you are on Windows for which Tcl/Tk instructions include installation of Ruby)
|
21
|
+
- [Ruby 3.0.2 compiled with RVM for Tk](https://rvm.io/integration/tk#tk) (unless you are on Windows for which Tcl/Tk instructions include installation of Ruby [get v3.0.2])
|
18
22
|
|
19
23
|
## Setup
|
20
24
|
|
@@ -25,7 +29,7 @@ You can use CryptoPunks GUI via gem or via cloning repository.
|
|
25
29
|
Run:
|
26
30
|
|
27
31
|
```
|
28
|
-
gem install cryptopunks-gui -v0.0.
|
32
|
+
gem install cryptopunks-gui -v0.0.10
|
29
33
|
```
|
30
34
|
|
31
35
|
Afterwards, run app via:
|
@@ -117,6 +121,14 @@ There are currently 38 available collections (from https://github.com/cryptopunk
|
|
117
121
|
|
118
122
|

|
119
123
|
|
124
|
+

|
125
|
+
|
126
|
+

|
127
|
+
|
128
|
+

|
129
|
+
|
130
|
+

|
131
|
+
|
120
132
|

|
121
133
|
|
122
134
|

|
@@ -199,6 +211,45 @@ You may select a new output location by clicking on the `...` button.
|
|
199
211
|
|
200
212
|

|
201
213
|
|
214
|
+
## Packaging
|
215
|
+
|
216
|
+
Assuming you have setup all prerequisites and cloned the project locally, you can package the project files, Ruby, gem dependencies, and ActiveTcl (Tcl/Tk) into fully self-contained native executable bundles for the Mac.
|
217
|
+
|
218
|
+
### Packaging Prerequisites
|
219
|
+
|
220
|
+
Packaging is currently supported on Mac only.
|
221
|
+
|
222
|
+
- [Platypus](https://github.com/sveinbjornt/Platypus): Install Platypus 5.3
|
223
|
+
- [Platypus Command Line Tool](https://github.com/sveinbjornt/Platypus/blob/master/Documentation/Documentation.md#show-shell-command): Run Platypus GUI -> Go to Preferences -> Install Command Line Tool.
|
224
|
+
|
225
|
+
Finally, ensure the `platypus` command is available in the terminal by simply running:
|
226
|
+
|
227
|
+
```
|
228
|
+
platypus --version
|
229
|
+
```
|
230
|
+
|
231
|
+
Output:
|
232
|
+
|
233
|
+
```
|
234
|
+
platypus version 5.3
|
235
|
+
```
|
236
|
+
|
237
|
+
### Packaging Commands
|
238
|
+
|
239
|
+
To package this app as both a Mac native executable (APP file) and a Mac native installer (DMG file), run this command (produces packages under `~/Applications`):
|
240
|
+
|
241
|
+
```
|
242
|
+
bin/package-mac
|
243
|
+
```
|
244
|
+
|
245
|
+
To package a Mac native executable only (quicker for local APP use without distribution), run:
|
246
|
+
|
247
|
+
```
|
248
|
+
bin/package-mac-app
|
249
|
+
```
|
250
|
+
|
251
|
+

|
252
|
+
|
202
253
|
## TODO
|
203
254
|
|
204
255
|
[TODO.md](TODO.md)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
data/app/cryptopunks_gui.rb
CHANGED
@@ -268,10 +268,13 @@ class CryptopunksGui
|
|
268
268
|
width 1.1
|
269
269
|
|
270
270
|
on('command') do
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
271
|
+
new_punk_directory = choose_directory(parent: @root)
|
272
|
+
unless new_punk_directory.to_s.empty?
|
273
|
+
@punk_directory = new_punk_directory
|
274
|
+
@punk_config[:punk_directory] = @punk_directory
|
275
|
+
save_config
|
276
|
+
generate_image
|
277
|
+
end
|
275
278
|
end
|
276
279
|
}
|
277
280
|
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
mkdir -p ~/Library/Frameworks
|
4
|
+
[ ! -d ~/Library/Tcl ] && cp -r Tcl ~/Library/Tcl
|
5
|
+
[ ! -d ~/Library/Frameworks/Tcl.framework ] && cp -r Tcl.framework ~/Library/Frameworks/Tcl.framework
|
6
|
+
[ ! -d ~/Library/Frameworks/Tk.framework ] && cp -r Tk.framework ~/Library/Frameworks/Tk.framework
|
7
|
+
|
8
|
+
ruby-3.0.2/bin/ruby cryptopunks-gui/bin/cryptopunks-mac-gui.rb
|
@@ -0,0 +1,8 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
Gem.paths = {
|
4
|
+
'GEM_HOME' => File.expand_path('../../ruby-3.0.2@cryptopunks-gui', __dir__),
|
5
|
+
'GEM_PATH' => Gem.paths.path + [File.expand_path('../../ruby-3.0.2@cryptopunks-gui', __dir__)],
|
6
|
+
'GEM_SPEC_CACHE' => Gem.paths.spec_cache_dir
|
7
|
+
}
|
8
|
+
require_relative '../app/cryptopunks_gui.rb'
|
data/bin/package-mac
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
source "$(dirname "$BASH_SOURCE")/package-mac-dmg"
|
4
|
+
echo "Moving .app file to ~/Applications/ to make ready for use..."
|
5
|
+
rm -rf ~/Applications/CryptoPunks\ GUI.app
|
6
|
+
mv ~/Applications/CryptoPunks\ GUI/CryptoPunks\ GUI.app ~/Applications/CryptoPunks\ GUI.app
|
7
|
+
rm -rf ~/Applications/CryptoPunks\ GUI
|
8
|
+
echo "Done packaging."
|
data/bin/package-mac-app
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
echo "Packaging .app file..."
|
4
|
+
mkdir -p ~/Applications/CryptoPunks\ GUI
|
5
|
+
platypus --quit-after-execution --interface-type "None" --name "CryptoPunks GUI" --app-icon "icons/cryptopunks-gui.icns" --author "Andy Maleh" --app-version "1.0.0" --bundle-identifier "org.andymaleh.CryptoPunksGUI" --bundled-file "$(pwd)|$(dirname $(dirname $(which ruby)))|$(dirname $(dirname $(dirname $(dirname $(gem which glimmer)))))|/Library/Frameworks/Tcl.framework|/Library/Frameworks/Tk.framework|/Library/Tcl" "bin/cryptopunks-mac-gui" --overwrite "~/Applications/CryptoPunks GUI/CryptoPunks GUI.app"
|
data/bin/package-mac-dmg
ADDED
data/cryptopunks-gui.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: cryptopunks-gui 0.0.
|
5
|
+
# stub: cryptopunks-gui 0.0.10 ruby app
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "cryptopunks-gui".freeze
|
9
|
-
s.version = "0.0.
|
9
|
+
s.version = "0.0.10"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["app".freeze]
|
13
13
|
s.authors = ["Andy Maleh".freeze]
|
14
|
-
s.date = "2021-
|
14
|
+
s.date = "2021-11-02"
|
15
15
|
s.description = "CryptoPunks GUI for Simplified Minting - Built with Glimmer DSL for Tk (requires ActiveTcl to run cryptopunks-gui command)".freeze
|
16
16
|
s.email = "andy.am@gmail.com".freeze
|
17
17
|
s.executables = ["cryptopunks-gui".freeze]
|
@@ -27,7 +27,13 @@ Gem::Specification.new do |s|
|
|
27
27
|
"VERSION",
|
28
28
|
"app/cryptopunks_gui.rb",
|
29
29
|
"bin/cryptopunks-gui",
|
30
|
+
"bin/cryptopunks-mac-gui",
|
31
|
+
"bin/cryptopunks-mac-gui.rb",
|
32
|
+
"bin/package-mac",
|
33
|
+
"bin/package-mac-app",
|
34
|
+
"bin/package-mac-dmg",
|
30
35
|
"cryptopunks-gui.gemspec",
|
36
|
+
"icons/cryptopunks-gui.icns",
|
31
37
|
"icons/cryptopunks-gui.png"
|
32
38
|
]
|
33
39
|
s.homepage = "http://github.com/AndyObtiva/cryptopunks-gui".freeze
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cryptopunks-gui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Maleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glimmer-dsl-tk
|
@@ -125,7 +125,13 @@ files:
|
|
125
125
|
- VERSION
|
126
126
|
- app/cryptopunks_gui.rb
|
127
127
|
- bin/cryptopunks-gui
|
128
|
+
- bin/cryptopunks-mac-gui
|
129
|
+
- bin/cryptopunks-mac-gui.rb
|
130
|
+
- bin/package-mac
|
131
|
+
- bin/package-mac-app
|
132
|
+
- bin/package-mac-dmg
|
128
133
|
- cryptopunks-gui.gemspec
|
134
|
+
- icons/cryptopunks-gui.icns
|
129
135
|
- icons/cryptopunks-gui.png
|
130
136
|
homepage: http://github.com/AndyObtiva/cryptopunks-gui
|
131
137
|
licenses:
|