Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use GitHub Actions #96

Closed
wants to merge 4 commits into from
Closed

Use GitHub Actions #96

wants to merge 4 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 7, 2021

And, again correct json syntax of config.json :P

echo $libdir
((Get-Content -path ./accesser.spec -Raw) -replace 'Python安装的目录',$libdir) | Set-Content -Path ./accesser.spec
((Get-Content -path ./accesser.spec -Raw) -replace '\\','/') | Set-Content -Path ./accesser.spec
((Get-Content -path ./accesser.spec -Raw) -replace 'Lib','lib') | Set-Content -Path ./accesser.spec
Copy link
Owner

@URenko URenko Feb 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不知道py3.9是大写还是小写,不过Windows下应该大小不敏感吧
还有'\\''/'是不是必须的,如果这样的话,我直接改下gist比较好

Copy link
Author

@ghost ghost Feb 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PS C:\Users\x> python -c 'import site; print(site.getsitepackages()[1])'
C:\Program Files\Python39\lib\site-packages

是小写的,可以确认

Copy link
Author

@ghost ghost Feb 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗯,\ 和 / 不会影响编译

@ghost
Copy link
Author

ghost commented Feb 9, 2021

Unable to find "C:\hostedtoolcache\windows\Python�.9.1d\Lib\site-packages\tld\res\effective_tld_names.dat.txt" when adding binary and data files.

@URenko
您把 Lib 改为 lib

@URenko
Copy link
Owner

URenko commented Feb 10, 2021

抱歉我搞错了一点,'\\'原来是python输出的而不是spec原来有的,所以

Unable to find "C:\hostedtoolcache\windows\Python�.9.1d\Lib\site-packages\tld\res\effective_tld_names.dat.txt" when adding binary and data files.

的问题是python输出了已经转义的字符串。我换了一种大概更准确的写法,你可以看看:

$libdir = python -c 'import os.path, tld; print(repr(os.path.dirname(tld.__file__))[1:-1])'

((Get-Content -path ./accesser.spec -Raw) -replace 'Python安装的目录/Lib/site-packages/tld',$libdir) | Set-Content -Path ./accesser.spec

test.yml是每次push都upload artifact但不release。

除此之外,我刚把logfile的默认值该回去了,所以现在要作相应替换,test.yml里有写。

最后还是自动release为draft吧,毕竟有根据最新的publish自动更新。
(题外话:说实话感觉这个几年前写的东西为了方便小白而问题多多,都懒得修了,所以大概不release了)

@ghost ghost closed this Feb 10, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant