瀏覽代碼

Default to "cmd" on windows. Fix workflow.

pull/2293/head
Regan Heath 5 年之前
父節點
當前提交
398aa6e005
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. +2
    -2
      .github/workflows/main.yml
  2. +1
    -1
      src/rebar_prv_escriptize.erl

+ 2
- 2
.github/workflows/main.yml 查看文件

@ -50,6 +50,6 @@ jobs:
- name: Install Erlang
run: choco install erlang
- name: Compile
run: bootstrap.ps1
run: .\bootstrap.ps1
- name: CT tests
run: rebar3.ps1 ct
run: .\rebar3.ps1 ct

+ 1
- 1
src/rebar_prv_escriptize.erl 查看文件

@ -143,7 +143,7 @@ escriptize(State0, App) ->
{ok, #file_info{mode = Mode}} = file:read_file_info(Filename),
ok = file:change_mode(Filename, Mode bor 8#00111);
{win32, _} ->
write_windows_scripts(Filename, rebar_state:get(State, escript_wrappers_windows, []))
write_windows_scripts(Filename, rebar_state:get(State, escript_wrappers_windows, ["cmd"]))
end,
{ok, State}.

Loading…
取消
儲存