mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-05 05:34:30 +03:00
Make CODE_SIGN gyp var lowercase and 💄 it in Rakefile
This commit is contained in:
parent
2cb18f5855
commit
93cddcf8dc
3
Rakefile
3
Rakefile
@ -16,7 +16,8 @@ task "create-xcode-project" => ["update-cef", "update-node"] do
|
|||||||
`rm -rf atom.xcodeproj`
|
`rm -rf atom.xcodeproj`
|
||||||
`script/generate-sources-gypi`
|
`script/generate-sources-gypi`
|
||||||
version = %{-D version="#{ENV['VERSION']}"} if ENV['VERSION']
|
version = %{-D version="#{ENV['VERSION']}"} if ENV['VERSION']
|
||||||
`gyp --depth=. -D CODE_SIGN="#{ENV['CODE_SIGN']}" #{version} atom.gyp`
|
code_sign = %{-D code_sign="#{ENV['CODE_SIGN']}"} if ENV['CODE_SIGN']
|
||||||
|
`gyp --depth=. #{code_sign} #{version} atom.gyp`
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "Update CEF to the latest version specified by the prebuilt-cef submodule"
|
desc "Update CEF to the latest version specified by the prebuilt-cef submodule"
|
||||||
|
7
atom.gyp
7
atom.gyp
@ -3,6 +3,7 @@
|
|||||||
'pkg-config': 'pkg-config',
|
'pkg-config': 'pkg-config',
|
||||||
'chromium_code': 1,
|
'chromium_code': 1,
|
||||||
'version%': "<!(git rev-parse --short HEAD)",
|
'version%': "<!(git rev-parse --short HEAD)",
|
||||||
|
'code_sign%': 0,
|
||||||
'use_aura%': 0,
|
'use_aura%': 0,
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['OS=="win"', {
|
['OS=="win"', {
|
||||||
@ -76,8 +77,8 @@
|
|||||||
'LD_RUNPATH_SEARCH_PATHS': '@executable_path/../Frameworks',
|
'LD_RUNPATH_SEARCH_PATHS': '@executable_path/../Frameworks',
|
||||||
},
|
},
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['CODE_SIGN' , {
|
['code_sign' , {
|
||||||
'xcode_settings': {'CODE_SIGN_IDENTITY': "<(CODE_SIGN)"},
|
'xcode_settings': {'CODE_SIGN_IDENTITY': "<(code_sign)"},
|
||||||
}],
|
}],
|
||||||
['OS=="win" and win_use_allocator_shim==1', {
|
['OS=="win" and win_use_allocator_shim==1', {
|
||||||
'dependencies': [
|
'dependencies': [
|
||||||
@ -269,7 +270,7 @@
|
|||||||
'native/mac/English.lproj/MainMenu.xib',
|
'native/mac/English.lproj/MainMenu.xib',
|
||||||
],
|
],
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['CODE_SIGN', {
|
['code_sign', {
|
||||||
'defines': [
|
'defines': [
|
||||||
'CODE_SIGNING_ENABLED=1',
|
'CODE_SIGNING_ENABLED=1',
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user