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

Self update #36

Merged
merged 75 commits into from
Mar 2, 2024
Merged
Changes from 1 commit
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
7473ade
get latest version body
hemnstill Feb 19, 2024
957cd6f
version_number
hemnstill Feb 23, 2024
37be8db
add version.txt to release.sh
hemnstill Feb 23, 2024
c66bd76
get self_version_body
hemnstill Feb 23, 2024
e8d46e4
compare version
hemnstill Feb 23, 2024
0f0c8df
own_files.txt: Finishing update process. Stage 2
hemnstill Feb 23, 2024
d3cf016
extract new version and run update.sh
hemnstill Feb 23, 2024
135172f
update.sh + tests
hemnstill Feb 23, 2024
6525d72
cut -d
hemnstill Feb 26, 2024
c8f8e05
MOCK_AUTOINSTALLCREATOR_GITHUB_TAG
hemnstill Feb 26, 2024
c4b8440
tests
hemnstill Feb 26, 2024
4017016
--silent get version body
hemnstill Feb 26, 2024
32e3ffd
allow downgrade
hemnstill Feb 26, 2024
98b9720
python -m unittests
hemnstill Feb 26, 2024
4a8047c
python3
hemnstill Feb 26, 2024
7f50f88
python3
hemnstill Feb 26, 2024
94ea72e
python3-dev
hemnstill Feb 26, 2024
3cf0964
~
hemnstill Feb 26, 2024
b7a2b6d
cd
hemnstill Feb 26, 2024
cf1e485
busybox_exe_path
hemnstill Feb 26, 2024
aafbb2b
ash
hemnstill Feb 26, 2024
8ebe198
git
hemnstill Feb 26, 2024
8216342
git config --global --add safe.directory
hemnstill Feb 26, 2024
1766a8c
libarchive-tools
hemnstill Feb 26, 2024
20c7e96
package_name
hemnstill Feb 26, 2024
ce3e586
+x
hemnstill Feb 26, 2024
ea3d653
-bash
hemnstill Feb 26, 2024
e858bb6
18
hemnstill Feb 26, 2024
9bfa912
+x
hemnstill Feb 26, 2024
729143f
~bash
hemnstill Feb 26, 2024
ef9a335
if windows
hemnstill Feb 26, 2024
dc00dac
fetch-depth: 0
hemnstill Feb 26, 2024
cf9588a
- +x
hemnstill Feb 26, 2024
905d70f
~
hemnstill Feb 26, 2024
be6cd80
bb
hemnstill Feb 26, 2024
3a11362
+bash
hemnstill Feb 26, 2024
71fb7b2
env
hemnstill Feb 26, 2024
bad7112
skip
hemnstill Feb 26, 2024
fb5ce0e
sh?
hemnstill Feb 26, 2024
dfd877f
-nanoserver
hemnstill Feb 26, 2024
de542c7
try windows-2019
hemnstill Feb 26, 2024
8af86df
revert and test linux first
hemnstill Feb 29, 2024
69b6dbf
ignore .log
hemnstill Feb 29, 2024
f72157c
disable release trigger
hemnstill Feb 29, 2024
2f5d927
disable alpine
hemnstill Feb 29, 2024
2cf3c34
check status from _update.log
hemnstill Feb 29, 2024
75ae521
+ → \;
hemnstill Mar 1, 2024
4081920
check xterm
hemnstill Mar 1, 2024
50302e1
enable windows tests
hemnstill Mar 1, 2024
4b19133
- nanoserver
hemnstill Mar 1, 2024
80366b7
'gnome-terminal', '--wait'
hemnstill Mar 1, 2024
5769bb4
MOCK_AUTOINSTALLCREATOR_XTERM
hemnstill Mar 1, 2024
ec2a807
-windows +alpine
hemnstill Mar 1, 2024
0aa6ace
- ::group:: prepare sources
hemnstill Mar 1, 2024
d796cf6
+windows
hemnstill Mar 1, 2024
fe4a57b
try core.autocrlf false
hemnstill Mar 1, 2024
364d873
which sha
hemnstill Mar 1, 2024
e2d73f9
remove wrong sha256sum
hemnstill Mar 1, 2024
3be4dea
+nanoserver
hemnstill Mar 1, 2024
4d1f879
${{ github.workspace }}
hemnstill Mar 1, 2024
e5f0064
ci-init.bat
hemnstill Mar 1, 2024
cc57ca1
^
hemnstill Mar 1, 2024
8648478
.example
hemnstill Mar 1, 2024
4dfa10e
e path
hemnstill Mar 1, 2024
db59443
^^
hemnstill Mar 1, 2024
c398cbe
~
hemnstill Mar 1, 2024
271e02a
-%PATH%
hemnstill Mar 1, 2024
391aaab
add global unsafe
hemnstill Mar 1, 2024
ae8928e
~
hemnstill Mar 1, 2024
f3f2e8c
-v
hemnstill Mar 1, 2024
7af4b05
tearDown
hemnstill Mar 1, 2024
6e12f61
copy certutil.exe
hemnstill Mar 1, 2024
58c5a93
ci-test-run-nanoserver.bat
hemnstill Mar 2, 2024
40e2ffd
set PATH
hemnstill Mar 2, 2024
438bc33
enable linux, enable on push to master
hemnstill Mar 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
sh?
  • Loading branch information
hemnstill committed Feb 26, 2024
commit fb5ce0e96c9a4ab492b893aa9d626d5e32ef4d2c
4 changes: 2 additions & 2 deletions _AutoinstallCreator/test_update.py
Original file line number Diff line number Diff line change
@@ -61,7 +61,7 @@ def setUp(self):
shutil.copyfile(os.path.join(_self_path, package_name), self.package_filepath)

def test_version_up_to_date(self):
subprocess.run(busybox_exe_path_arg + ['bash', self.package_filepath],
subprocess.run(busybox_exe_path_arg + ['sh', self.package_filepath],
env={
**os.environ,
'BB_OVERRIDE_APPLETS': 'tar'
@@ -79,7 +79,7 @@ def test_version_up_to_date(self):

@unittest.skip('dbg')
def test_update_to_new_version(self):
subprocess.run(busybox_exe_path_arg + ['bash', self.package_filepath, '--target', self.test_old_version],
subprocess.run(busybox_exe_path_arg + ['sh', self.package_filepath, '--target', self.test_old_version],
cwd=_self_tmp_path,
env={
**os.environ,
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
@@ -116,7 +116,7 @@ if [[ -z $MOCK_AUTOINSTALLCREATOR_PACKAGE_FILEPATH ]]; then
fi

echo "Extracting to: $dp0/_$self_name/$version_body"
bash "$package_filepath" --target "$dp0/_$self_name/tmp_$version_body"
sh "$package_filepath" --target "$dp0/_$self_name/tmp_$version_body"

echo "Running extracted 'update.sh'"
bash "$dp0/_$self_name/tmp_$version_body/update.sh" "$dp0" >& $dp0/_update.log
Loading